diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-17 16:56:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-17 16:56:44 +1300 |
commit | 512b95fd6975005c6460ddad16714502510cb16e (patch) | |
tree | b8bb5ca7f9a50e45b835ba259a7a248fcf321f6b | |
parent | f76bf825df7c35a6882b3d4b1b17f29eca10da1f (diff) | |
download | trackermap-server-512b95fd6975005c6460ddad16714502510cb16e.tar.gz trackermap-server-512b95fd6975005c6460ddad16714502510cb16e.tar.bz2 trackermap-server-512b95fd6975005c6460ddad16714502510cb16e.zip |
Correctly decode upro mileage
-rw-r--r-- | src/org/traccar/protocol/UproProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/UproProtocolDecoder.java b/src/org/traccar/protocol/UproProtocolDecoder.java index c6f400cae..24a0f5dcd 100644 --- a/src/org/traccar/protocol/UproProtocolDecoder.java +++ b/src/org/traccar/protocol/UproProtocolDecoder.java @@ -127,7 +127,7 @@ public class UproProtocolDecoder extends BaseProtocolDecoder { odometer <<= 4; odometer += data[i].charAt(j) - '0'; } - position.set(Position.KEY_ODOMETER, odometer); + position.set(Position.KEY_ODOMETER, odometer * 2 * 1852 / 3600); break; case 'P': position.set(Position.KEY_MCC, Integer.parseInt(data[i].substring(1, 5))); |