aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-08-02 10:36:24 +0200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-08-02 10:36:24 +0200
commit9e23c4616b427c86961342ac7b92499ad6c6c91a (patch)
tree2b625b30d102f13f4a7f90646b852512b131c4e7
parent53486c0fe1bad6adb2324bd596e7528dcec82d26 (diff)
downloadtraccar-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.tar.gz
traccar-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.tar.bz2
traccar-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.zip
Support ACC flag (fix #760)
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
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