aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-22 15:33:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-22 15:34:18 +1300
commit6ebe7202420731f51cd40f15879ce40bdd1926b6 (patch)
treea42c613baba2d6cd5f981898f8b12ac42631c7c1 /src/org/traccar/protocol
parentfc0a26137fbd00339fcbf28b10b2afae6242d094 (diff)
downloadtrackermap-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.tar.gz
trackermap-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.tar.bz2
trackermap-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.zip
Fix Ulbotech ignition status decoding
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/UlbotechProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
index 3dc5b36cb..bf0a9cc76 100644
--- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -151,7 +151,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
case DATA_STATUS:
int status = buf.readUnsignedShort();
- position.set(Event.KEY_IGNITION, BitUtil.check(status, 6));
+ position.set(Event.KEY_IGNITION, BitUtil.check(status, 9));
position.set(Event.KEY_STATUS, status);
position.set(Event.KEY_ALARM, buf.readUnsignedShort());
break;