aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gt06ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-02 08:32:30 +1100
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-02 08:32:30 +1100
commit2e2801348be8b8d502e7c082a2be16d1fc83984d (patch)
tree1293aeac6fc4ecd494de496080cd101a3342f638 /src/org/traccar/protocol/Gt06ProtocolDecoder.java
parentdc53f34f5f823fcea8ec3a94c78716262e4fb42f (diff)
downloadtrackermap-server-2e2801348be8b8d502e7c082a2be16d1fc83984d.tar.gz
trackermap-server-2e2801348be8b8d502e7c082a2be16d1fc83984d.tar.bz2
trackermap-server-2e2801348be8b8d502e7c082a2be16d1fc83984d.zip
Save status flag for GT06 protocol
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
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());
}