aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-03 22:47:33 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-03 22:47:33 +1300
commit7bd6551a2f5712d63bea7e8711944fbeb78323c8 (patch)
tree7fc7a7c6a3207582ff4e152bd6dc1a7d001cde9d /src/org
parente512848dc07145664f3c5d0adff7a9f88b2f17b6 (diff)
downloadtraccar-server-7bd6551a2f5712d63bea7e8711944fbeb78323c8.tar.gz
traccar-server-7bd6551a2f5712d63bea7e8711944fbeb78323c8.tar.bz2
traccar-server-7bd6551a2f5712d63bea7e8711944fbeb78323c8.zip
Another small GoSafe fix
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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())));
}