diff options
Diffstat (limited to 'src/main/java/org/traccar/protocol/AstraProtocolDecoder.java')
-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()); |