From 6ebe7202420731f51cd40f15879ce40bdd1926b6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 22 Jan 2016 15:33:44 +1300 Subject: Fix Ulbotech ignition status decoding --- src/org/traccar/protocol/UlbotechProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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; -- cgit v1.2.3