aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
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/org/traccar
parent82968b479082e6fc0c6407b6f461df739a0bf164 (diff)
downloadtrackermap-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.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);
}