diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-02 03:28:29 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-02 03:28:29 +1300 |
commit | f63658504320cb96501cf83d698ba932840e315b (patch) | |
tree | 0d3d5ce9bacf0fa76b845d243cda719c3d976a9a /src/org/traccar | |
parent | 82968b479082e6fc0c6407b6f461df739a0bf164 (diff) | |
download | trackermap-server-f63658504320cb96501cf83d698ba932840e315b.tar.gz trackermap-server-f63658504320cb96501cf83d698ba932840e315b.tar.bz2 trackermap-server-f63658504320cb96501cf83d698ba932840e315b.zip |
Decode H02 ignition correctly
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/H02ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java index 45a978571..2b7d00969 100644 --- a/src/org/traccar/protocol/H02ProtocolDecoder.java +++ b/src/org/traccar/protocol/H02ProtocolDecoder.java @@ -75,7 +75,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED); } } - position.set(Position.KEY_IGNITION, BitUtil.check(status, 10)); + position.set(Position.KEY_IGNITION, !BitUtil.check(status, 10)); position.set(Position.KEY_STATUS, status); } |