aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-23 07:05:11 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-23 07:05:11 -0700
commitc466a8d2baea1913e5623b4dff13e8256220e648 (patch)
treeb4572e3c1adea37c2bbcaf4691ed7ffed3bd2918 /src/main
parentc2c27617fa4392c3a25a6c4ad62bd24060f1c0c1 (diff)
downloadtrackermap-server-c466a8d2baea1913e5623b4dff13e8256220e648.tar.gz
trackermap-server-c466a8d2baea1913e5623b4dff13e8256220e648.tar.bz2
trackermap-server-c466a8d2baea1913e5623b4dff13e8256220e648.zip
Remove ET OBD mileage value
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
index c3ff473bf..ff192807b 100644
--- a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
@@ -92,7 +92,7 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder {
.number("C(d+);") // coolant temperature
.number("L(d+.d);") // fuel level
.number("[XY][MH]d+.d+;")
- .number("M(d+.?d*);") // mileage
+ .number("Md+.?d*;") // mileage
.number("F(d+.d+);") // fuel consumption
.number("T(d+);") // engine time
.any()
@@ -264,7 +264,6 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_ENGINE_LOAD, parser.nextDouble());
position.set(Position.KEY_COOLANT_TEMP, parser.nextInt());
position.set(Position.KEY_FUEL_LEVEL, parser.nextDouble());
- position.set(Position.KEY_ODOMETER, parser.nextDouble());
position.set(Position.KEY_FUEL_CONSUMPTION, parser.nextDouble());
position.set(Position.KEY_HOURS, parser.nextInt());