From c31414d53e1b6e5427202c826f887d5f3b4be913 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 18 Jan 2021 22:30:42 -0800 Subject: Fix odometer decoding --- src/main/java/org/traccar/protocol/NetProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/NetProtocolDecoder.java b/src/main/java/org/traccar/protocol/NetProtocolDecoder.java index 61cb29b6b..c71a792a2 100644 --- a/src/main/java/org/traccar/protocol/NetProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/NetProtocolDecoder.java @@ -81,7 +81,7 @@ public class NetProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_STATUS, parser.nextHexLong()); position.setSpeed(parser.nextHexInt() * 0.01); - position.set(Position.KEY_ODOMETER, parser.nextHexInt()); + position.set(Position.KEY_ODOMETER, parser.nextHexInt() * 1852.0 / 16); position.setCourse(parser.nextHexInt()); parser.nextHexInt(); // alarm -- cgit v1.2.3