aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-01 10:16:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-01 10:16:22 +1300
commit329014781823c4fa43cffb61682cb670d55285e7 (patch)
treeeb4ba5e990b6207bd665b6c235c276fb50f5930a /src/org/traccar/protocol/Gl200TextProtocolDecoder.java
parent3dba7d6b7d5dc90366e70ed8ca31d48a0b935669 (diff)
downloadtrackermap-server-329014781823c4fa43cffb61682cb670d55285e7.tar.gz
trackermap-server-329014781823c4fa43cffb61682cb670d55285e7.tar.bz2
trackermap-server-329014781823c4fa43cffb61682cb670d55285e7.zip
Invert ignition values
Diffstat (limited to 'src/org/traccar/protocol/Gl200TextProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gl200TextProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
index 70627d65d..0b6bcd09d 100644
--- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java
@@ -974,7 +974,7 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder {
} else if (type.equals("DIS")) {
position.set(Position.PREFIX_IN + reportType / 0x10, reportType % 0x10 == 1);
} else if (type.equals("IGL")) {
- position.set(Position.KEY_IGNITION, reportType % 0x10 == 0);
+ position.set(Position.KEY_IGNITION, reportType % 0x10 == 1);
}
decodeLocation(position, parser);