From 8482304d444ebdd25901be066eaf4b5c4048a278 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 19 Aug 2017 12:28:02 +1200 Subject: Fix Ruptela ignition --- src/org/traccar/protocol/RuptelaProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/org/traccar/protocol/RuptelaProtocolDecoder.java index 6036397f6..8752d30c0 100644 --- a/src/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -95,7 +95,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { position.set("di" + (id - 1), readValue(buf, length, false)); break; case 5: - position.set(Position.KEY_IGNITION, readValue(buf, length, false)); + position.set(Position.KEY_IGNITION, readValue(buf, length, false) == 1); break; case 74: position.set(Position.PREFIX_TEMP + 3, readValue(buf, length, true) * 0.1); -- cgit v1.2.3