aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-18 11:21:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-18 11:21:45 +1200
commit57f4d3ab8ebb723c891e2b7583b85f6b14d547dd (patch)
treec345f9974f4f5d930ef6ea4dd1ba97d665d450e4 /src/org
parentd8da0a28c50993e275b5ce9028d9e21ab23944aa (diff)
downloadtrackermap-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.tar.gz
trackermap-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.tar.bz2
trackermap-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.zip
Fix minor decoder issue for Megastek
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/MegastekProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MegastekProtocolDecoder.java b/src/org/traccar/protocol/MegastekProtocolDecoder.java
index 0c332d0da..ca554aa48 100644
--- a/src/org/traccar/protocol/MegastekProtocolDecoder.java
+++ b/src/org/traccar/protocol/MegastekProtocolDecoder.java
@@ -173,7 +173,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_CHARGE, Integer.parseInt(charger) == 1);
}
- if (parser.hasNext(3)) {
+ if (parser.hasNext(4)) {
position.set(Position.KEY_MCC, parser.nextInt());
position.set(Position.KEY_MNC, parser.nextInt());
position.set(Position.KEY_LAC, parser.nextInt(16));