diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-06 17:00:10 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-06 17:00:10 -0800 |
commit | 95ee5109d56fdcb01bcf8f1f620d00654fafb4a2 (patch) | |
tree | 6391dcdb2090882a7e6d86d31764106c0d3f0ce4 /src | |
parent | b2f021bc447884d85c9fbcce93bb708d3702d1d8 (diff) | |
download | trackermap-server-95ee5109d56fdcb01bcf8f1f620d00654fafb4a2.tar.gz trackermap-server-95ee5109d56fdcb01bcf8f1f620d00654fafb4a2.tar.bz2 trackermap-server-95ee5109d56fdcb01bcf8f1f620d00654fafb4a2.zip |
Fix DMT Bolt2 alarms
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/DmtProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java index 0fd83f503..320aa1b60 100644 --- a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java @@ -184,9 +184,9 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_IGNITION, BitUtil.check(input, 0)); - if (!BitUtil.check(input, 1)) { + if (!BitUtil.check(status, 1)) { position.set(Position.KEY_ALARM, Position.ALARM_LOW_BATTERY); - } else if (BitUtil.check(input, 6)) { + } else if (BitUtil.check(status, 6)) { position.set(Position.KEY_ALARM, Position.ALARM_TAMPERING); } |