From 32a3e0e512602afd25a1ad90d1861d71f918a9f4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 29 Jul 2019 23:31:45 -0700 Subject: Decode ignition value --- src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java index 940d43a56..5c2c26da7 100644 --- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java @@ -264,7 +264,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_BATTERY, BcdUtil.readInteger(buf, 2) * 0.1); position.set("solarPanel", BcdUtil.readInteger(buf, 2) * 0.1); position.set(Position.KEY_ODOMETER, buf.readUnsignedInt()); - position.set(Position.KEY_STATUS, buf.readUnsignedShort()); + position.set(Position.KEY_IGNITION, BitUtil.check(buf.readUnsignedShort(), 2)); } else if (buf.readableBytes() >= 2) { -- cgit v1.2.3