diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-19 12:28:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-19 12:28:02 +1200 |
commit | 8482304d444ebdd25901be066eaf4b5c4048a278 (patch) | |
tree | e228c8243f255609149016e0102f6891bf7787b7 /src/org | |
parent | c35598574e686e1f9e5800af2fe1da19775fffdd (diff) | |
download | traccar-server-8482304d444ebdd25901be066eaf4b5c4048a278.tar.gz traccar-server-8482304d444ebdd25901be066eaf4b5c4048a278.tar.bz2 traccar-server-8482304d444ebdd25901be066eaf4b5c4048a278.zip |
Fix Ruptela ignition
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/RuptelaProtocolDecoder.java | 2 |
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); |