diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/NetProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |