From 9e23c4616b427c86961342ac7b92499ad6c6c91a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 2 Aug 2014 10:36:24 +0200 Subject: Support ACC flag (fix #760) --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 44cc5a16d..8851c0f3e 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -165,6 +165,10 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(latitude); position.setLongitude(longitude); position.setAltitude(0.0); + + if ((union & 0x4000) != 0) { + extendedInfo.set("acc", (union & 0x8000) != 0); + } buf.skipBytes(gpsLength - 12); // skip reserved -- cgit v1.2.3