aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 22:30:42 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 22:30:42 -0800
commitc31414d53e1b6e5427202c826f887d5f3b4be913 (patch)
tree7dba9e9b706bad309272743ed15ae6e3ededd31a /src/main/java
parent48ec866d8e50ce2ef63ca336648db611cc233916 (diff)
downloadtrackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.tar.gz
trackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.tar.bz2
trackermap-server-c31414d53e1b6e5427202c826f887d5f3b4be913.zip
Fix odometer decoding
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/NetProtocolDecoder.java2
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