aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-12 09:44:48 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-12 09:44:48 +1200
commita5b29b0e5df4ba84c8eaa8944258b9c9e12472db (patch)
tree4da2fe0930a4db0e825d9e8d045bce68c23bf000 /src
parent7e845a90d18b0c079a5798b9e1857c668c6a63ed (diff)
downloadtraccar-server-a5b29b0e5df4ba84c8eaa8944258b9c9e12472db.tar.gz
traccar-server-a5b29b0e5df4ba84c8eaa8944258b9c9e12472db.tar.bz2
traccar-server-a5b29b0e5df4ba84c8eaa8944258b9c9e12472db.zip
Rename acc to ignition
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 07f6dc7d5..fde34c8f7 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -179,7 +179,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(longitude);
if ((union & 0b0100_0000_0000_0000) != 0) {
- position.set("acc", (union & 0b1000_0000_0000_0000) != 0);
+ position.set(Event.KEY_IGNITION, (union & 0b1000_0000_0000_0000) != 0);
}
buf.skipBytes(gpsLength - 12); // skip reserved
@@ -206,7 +206,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
int flags = buf.readUnsignedByte();
- position.set("acc", (flags & 0x2) != 0);
+ position.set(Event.KEY_IGNITION, (flags & 0x2) != 0);
// TODO parse other flags
// Voltage