diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-14 22:31:34 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-14 22:31:34 -0700 |
commit | 5233a4b109a3e19ef2846d0bcd9f1ead71d70439 (patch) | |
tree | 3c6ac59337e44ef60dbdc58eabddf845d7d184a2 | |
parent | edeb03b40d04be2c75eb736e35afc3b324da0cf2 (diff) | |
download | trackermap-server-5233a4b109a3e19ef2846d0bcd9f1ead71d70439.tar.gz trackermap-server-5233a4b109a3e19ef2846d0bcd9f1ead71d70439.tar.bz2 trackermap-server-5233a4b109a3e19ef2846d0bcd9f1ead71d70439.zip |
Support engine lock status
-rw-r--r-- | src/main/java/org/traccar/protocol/EasyTrackProtocolDecoder.java | 3 |
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()); |