aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-02 03:28:29 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-02 03:28:29 +1300
commitf63658504320cb96501cf83d698ba932840e315b (patch)
tree0d3d5ce9bacf0fa76b845d243cda719c3d976a9a /src
parent82968b479082e6fc0c6407b6f461df739a0bf164 (diff)
downloadtraccar-server-f63658504320cb96501cf83d698ba932840e315b.tar.gz
traccar-server-f63658504320cb96501cf83d698ba932840e315b.tar.bz2
traccar-server-f63658504320cb96501cf83d698ba932840e315b.zip
Decode H02 ignition correctly
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java2
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);
}