From 5233a4b109a3e19ef2846d0bcd9f1ead71d70439 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 14 Jul 2020 22:31:34 -0700 Subject: Support engine lock status --- src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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()); -- cgit v1.2.3