diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-22 15:33:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-22 15:34:18 +1300 |
commit | 6ebe7202420731f51cd40f15879ce40bdd1926b6 (patch) | |
tree | a42c613baba2d6cd5f981898f8b12ac42631c7c1 /src/org | |
parent | fc0a26137fbd00339fcbf28b10b2afae6242d094 (diff) | |
download | traccar-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.tar.gz traccar-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.tar.bz2 traccar-server-6ebe7202420731f51cd40f15879ce40bdd1926b6.zip |
Fix Ulbotech ignition status decoding
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/UlbotechProtocolDecoder.java | 2 |
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; |