From 329014781823c4fa43cffb61682cb670d55285e7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 1 Nov 2018 10:16:22 +1300 Subject: Invert ignition values --- src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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); -- cgit v1.2.3