aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-04 13:28:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-04 13:28:03 +1300
commit1423209d00804948110e1b70c2e41248b4945877 (patch)
tree4529df0b6c3398126433f049baf5da7450a62e5f /src/org/traccar/protocol/MeitrackProtocolDecoder.java
parentb29929c4c8f78f665dd1614e43ee108c6eeeaa89 (diff)
downloadtrackermap-server-1423209d00804948110e1b70c2e41248b4945877.tar.gz
trackermap-server-1423209d00804948110e1b70c2e41248b4945877.tar.bz2
trackermap-server-1423209d00804948110e1b70c2e41248b4945877.zip
Ensure that odometer is a number (fix #2967)
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
index 4862b4937..f5253566b 100644
--- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -124,7 +124,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
position.setAltitude(parser.nextDouble());
- position.set(Position.KEY_ODOMETER, parser.next());
+ position.set(Position.KEY_ODOMETER, parser.nextInt());
position.set("runtime", parser.next());
position.setNetwork(new Network(