diff options
author | Anton Tananaev <anton@traccar.org> | 2024-07-30 21:59:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-07-30 21:59:14 -0700 |
commit | b61e01af5599b9954b0ed4424f417ab659f9aed8 (patch) | |
tree | ad200675933bee17f402a24b4ad9d898caaccda9 /src/main | |
parent | b68324196ed548ca2eeb2a0ca878fcbf1702997e (diff) | |
download | trackermap-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.java | 2 |
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()); |