diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-08-02 10:36:24 +0200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-08-02 10:36:24 +0200 |
commit | 9e23c4616b427c86961342ac7b92499ad6c6c91a (patch) | |
tree | 2b625b30d102f13f4a7f90646b852512b131c4e7 /src | |
parent | 53486c0fe1bad6adb2324bd596e7528dcec82d26 (diff) | |
download | trackermap-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.tar.gz trackermap-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.tar.bz2 trackermap-server-9e23c4616b427c86961342ac7b92499ad6c6c91a.zip |
Support ACC flag (fix #760)
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
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 |