diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-18 11:21:25 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-18 11:21:45 +1200 |
commit | 57f4d3ab8ebb723c891e2b7583b85f6b14d547dd (patch) | |
tree | c345f9974f4f5d930ef6ea4dd1ba97d665d450e4 /src | |
parent | d8da0a28c50993e275b5ce9028d9e21ab23944aa (diff) | |
download | traccar-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.tar.gz traccar-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.tar.bz2 traccar-server-57f4d3ab8ebb723c891e2b7583b85f6b14d547dd.zip |
Fix minor decoder issue for Megastek
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/MegastekProtocolDecoder.java | 2 |
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)); |