aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-26 07:48:29 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-26 07:48:29 -0700
commit4a5b8d79b560c7941960cc47c551d87b1a942320 (patch)
tree8412debc9f94e29162c218a478fcc4452c11f9a9
parenteb2021058ae754cf75ce2c303581de98e9f0f53f (diff)
downloadtrackermap-server-4a5b8d79b560c7941960cc47c551d87b1a942320.tar.gz
trackermap-server-4a5b8d79b560c7941960cc47c551d87b1a942320.tar.bz2
trackermap-server-4a5b8d79b560c7941960cc47c551d87b1a942320.zip
Fix odometer decoding
-rw-r--r--src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java b/src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java
index e758a8bb8..36d66935c 100644
--- a/src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java
@@ -76,6 +76,7 @@ public class StarcomProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_EVENT, Integer.parseInt(value));
break;
case "mileage":
+ case "odometer":
position.set(Position.KEY_ODOMETER, (long) (Double.parseDouble(value) * 1000));
break;
case "satellites":