From 2e2801348be8b8d502e7c082a2be16d1fc83984d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 2 Feb 2016 08:32:30 +1100 Subject: Save status flag for GT06 protocol --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 2b049c57e..e83ced668 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -157,8 +157,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { int flags = buf.readUnsignedByte(); position.set(Event.KEY_IGNITION, BitUtil.check(flags, 1)); - // decode other flags - + position.set(Event.KEY_STATUS, flags); position.set(Event.KEY_POWER, buf.readUnsignedByte()); position.set(Event.KEY_GSM, buf.readUnsignedByte()); } -- cgit v1.2.3