aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-17 16:56:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-17 16:56:44 +1300
commit512b95fd6975005c6460ddad16714502510cb16e (patch)
treeb8bb5ca7f9a50e45b835ba259a7a248fcf321f6b /src/org/traccar
parentf76bf825df7c35a6882b3d4b1b17f29eca10da1f (diff)
downloadtraccar-server-512b95fd6975005c6460ddad16714502510cb16e.tar.gz
traccar-server-512b95fd6975005c6460ddad16714502510cb16e.tar.bz2
traccar-server-512b95fd6975005c6460ddad16714502510cb16e.zip
Correctly decode upro mileage
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/UproProtocolDecoder.java2
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)));