aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-30 21:59:14 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-30 21:59:14 -0700
commitb61e01af5599b9954b0ed4424f417ab659f9aed8 (patch)
treead200675933bee17f402a24b4ad9d898caaccda9 /src/main
parentb68324196ed548ca2eeb2a0ca878fcbf1702997e (diff)
downloadtrackermap-server-b61e01af5599b9954b0ed4424f417ab659f9aed8.tar.gz
trackermap-server-b61e01af5599b9954b0ed4424f417ab659f9aed8.tar.bz2
trackermap-server-b61e01af5599b9954b0ed4424f417ab659f9aed8.zip
Fix Astra X mask decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/AstraProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/AstraProtocolDecoder.java b/src/main/java/org/traccar/protocol/AstraProtocolDecoder.java
index a1e133c23..16844da7c 100644
--- a/src/main/java/org/traccar/protocol/AstraProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AstraProtocolDecoder.java
@@ -158,7 +158,7 @@ public class AstraProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
position.set(Position.KEY_INDEX, buf.readUnsignedByte());
- long mask = (long) buf.readUnsignedShort() << 32 + buf.readUnsignedInt();
+ long mask = ((long) buf.readUnsignedShort() << 32) + buf.readUnsignedInt();
position.setDeviceTime(readTime(buf));
position.set(Position.KEY_EVENT, buf.readUnsignedInt());
position.set(Position.KEY_STATUS, buf.readUnsignedShort());