aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
index 889e2bf09..d22106a80 100644
--- a/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java
@@ -143,7 +143,8 @@ public class EasyTrackProtocolDecoder extends BaseProtocolDecoder {
long status = parser.nextHexLong();
position.set(Position.KEY_ALARM, decodeAlarm(status));
- position.set(Position.KEY_IGNITION, BitUtil.check(status, 23));
+ position.set(Position.KEY_BLOCKED, (status & 0x00080000) > 0);
+ position.set(Position.KEY_IGNITION, (status & 0x00800000) > 0);
position.set(Position.KEY_STATUS, status);
position.set(Position.KEY_RSSI, parser.nextHexInt());