aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-08-19 12:28:02 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-08-19 12:28:02 +1200
commit8482304d444ebdd25901be066eaf4b5c4048a278 (patch)
treee228c8243f255609149016e0102f6891bf7787b7 /src/org/traccar/protocol
parentc35598574e686e1f9e5800af2fe1da19775fffdd (diff)
downloadtrackermap-server-8482304d444ebdd25901be066eaf4b5c4048a278.tar.gz
trackermap-server-8482304d444ebdd25901be066eaf4b5c4048a278.tar.bz2
trackermap-server-8482304d444ebdd25901be066eaf4b5c4048a278.zip
Fix Ruptela ignition
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/RuptelaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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);