From 7bd6551a2f5712d63bea7e8711944fbeb78323c8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 3 Jan 2017 22:47:33 +1300 Subject: Another small GoSafe fix --- src/org/traccar/protocol/GoSafeProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java index deeea2333..94d12e989 100644 --- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -156,7 +156,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_HDOP, parser.next()); - if (parser.hasNext(4)) { + if (parser.hasNext(5)) { position.setNetwork(new Network(CellTower.from( parser.nextInt(), parser.nextInt(), parser.nextInt(16), parser.nextInt(16), parser.nextInt()))); } -- cgit v1.2.3