diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-07-10 22:00:50 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-07-10 22:00:50 -0400 |
commit | 35b6dc85f8c0c23ede5ece005bdc893c4320b8f3 (patch) | |
tree | 96b7aaf576ca0d894e2d4950a93ddb5ca24d6999 /src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java | |
parent | 9990000d67907cb41bdc18639d7dbe081c363f09 (diff) | |
download | trackermap-server-35b6dc85f8c0c23ede5ece005bdc893c4320b8f3.tar.gz trackermap-server-35b6dc85f8c0c23ede5ece005bdc893c4320b8f3.tar.bz2 trackermap-server-35b6dc85f8c0c23ede5ece005bdc893c4320b8f3.zip |
Fixed odometer value read as meters instead of kilometers
Diffstat (limited to 'src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java index 767d70a5c..c3b12aa80 100644 --- a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java @@ -223,7 +223,7 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ALARM, decodeAlarm(event)); position.set(Position.KEY_EVENT, decodeEvent(event, position)); position.set(Position.KEY_BATTERY, Double.parseDouble(parser.next().replaceAll("\\.", "")) * 0.001); - position.set(Position.KEY_ODOMETER, parser.nextDouble()); + position.set(Position.KEY_ODOMETER, parser.nextDouble() * 1000); position.set(Position.KEY_GPS, parser.nextInt()); position.set(Position.PREFIX_ADC + 1, parser.nextDouble() * 0.001); position.set(Position.PREFIX_ADC + 2, parser.nextDouble() * 0.001); |