diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-11 17:08:24 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-11 17:08:24 -0700 |
commit | 22228ea159618627c0b6d79c1ad7e87eadbeb598 (patch) | |
tree | 4f2db2488f873db2bd932a79f695317f7db65222 /src/main/java/org/traccar/protocol | |
parent | bc2faa140a2a5ba63968b95cd8ddba7578e1b07f (diff) | |
download | trackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.tar.gz trackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.tar.bz2 trackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.zip |
Fix KHD ignition decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/KhdProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java index e88b34478..2b234ab21 100644 --- a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java @@ -171,7 +171,7 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder { } long status = buf.readUnsignedInt(); - position.set(Position.KEY_IGNITION, BitUtil.check(status, 7 + 3 * 8)); + position.set(Position.KEY_IGNITION, !BitUtil.check(status, 7 + 3 * 8)); position.set(Position.KEY_STATUS, status); buf.readUnsignedShort(); |