From 4a5b8d79b560c7941960cc47c551d87b1a942320 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 26 Aug 2023 07:48:29 -0700 Subject: Fix odometer decoding --- src/main/java/org/traccar/protocol/StarcomProtocolDecoder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/org/traccar') 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": -- cgit v1.2.3