diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-01 10:16:22 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-01 10:16:22 +1300 |
commit | 329014781823c4fa43cffb61682cb670d55285e7 (patch) | |
tree | eb4ba5e990b6207bd665b6c235c276fb50f5930a /src | |
parent | 3dba7d6b7d5dc90366e70ed8ca31d48a0b935669 (diff) | |
download | traccar-server-329014781823c4fa43cffb61682cb670d55285e7.tar.gz traccar-server-329014781823c4fa43cffb61682cb670d55285e7.tar.bz2 traccar-server-329014781823c4fa43cffb61682cb670d55285e7.zip |
Invert ignition values
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 2 |
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); |