aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-11 17:08:24 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-11 17:08:24 -0700
commit22228ea159618627c0b6d79c1ad7e87eadbeb598 (patch)
tree4f2db2488f873db2bd932a79f695317f7db65222 /src
parentbc2faa140a2a5ba63968b95cd8ddba7578e1b07f (diff)
downloadtrackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.tar.gz
trackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.tar.bz2
trackermap-server-22228ea159618627c0b6d79c1ad7e87eadbeb598.zip
Fix KHD ignition decoding
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/KhdProtocolDecoder.java2
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();