aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-08 16:53:12 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-08 16:53:12 -0700
commita551ac40761520e8d48e4438213f70854569c1d9 (patch)
tree8804f9b440343be8e3b484bba9971d9229820966
parenteaa390e74ead87dc953a3af9dd22ee68b35d8a59 (diff)
downloadtrackermap-server-a551ac40761520e8d48e4438213f70854569c1d9.tar.gz
trackermap-server-a551ac40761520e8d48e4438213f70854569c1d9.tar.bz2
trackermap-server-a551ac40761520e8d48e4438213f70854569c1d9.zip
Fix Iridium decoding
-rw-r--r--src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
index b1deded3b..1f6a4d2b4 100644
--- a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -262,7 +262,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
buf.skipBytes(4); // reserved
position.setTime(new Date(buf.readUnsignedIntLE() * 1000));
- buf.skipBytes(3); // coordinates header
+ buf.skipBytes(2); // coordinates header
int flags = buf.readUnsignedByte();
double latitude = buf.readUnsignedByte() + buf.readUnsignedShortLE() / 60000.0;
double longitude = buf.readUnsignedByte() + buf.readUnsignedShortLE() / 60000.0;