aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-09-14 18:30:37 -0700
committerAnton Tananaev <anton@traccar.org>2023-09-14 18:30:37 -0700
commit070cb02751a29eb746a5b2c1797dcbe26e5af9ad (patch)
treed6da899274ab9fc332972a9bd678421632b2d181 /src/main/java
parent6b61074e00ea242dbe2135423f75ab44473563a2 (diff)
downloadtrackermap-server-070cb02751a29eb746a5b2c1797dcbe26e5af9ad.tar.gz
trackermap-server-070cb02751a29eb746a5b2c1797dcbe26e5af9ad.tar.bz2
trackermap-server-070cb02751a29eb746a5b2c1797dcbe26e5af9ad.zip
Split MD500S OBD odometer
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index aa0fe19d8..506ad2179 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -514,7 +514,6 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.setTime(new Date((946684800 + buf.readUnsignedIntLE()) * 1000)); // 2000-01-01
break;
case 0x0C:
- case 0x9B:
position.set(Position.KEY_ODOMETER, buf.readUnsignedIntLE());
break;
case 0x0D:
@@ -523,6 +522,9 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x25:
position.set(Position.KEY_DRIVER_UNIQUE_ID, String.valueOf(buf.readUnsignedIntLE()));
break;
+ case 0x9B:
+ position.set(Position.KEY_OBD_ODOMETER, buf.readUnsignedIntLE());
+ break;
case 0xA0:
position.set(Position.KEY_FUEL_USED, buf.readUnsignedIntLE() * 0.001);
break;