diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-06-12 16:49:33 +0200 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-06-12 16:49:33 +0200 |
commit | 105e4b943e618d6fa8200d25225caeb4680c2080 (patch) | |
tree | 78463d7e975866fe0d4436993cc7bf60595579fa /src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java | |
parent | f0aedd380e67488dfe73adf49f48a822ca4b232e (diff) | |
download | trackermap-server-105e4b943e618d6fa8200d25225caeb4680c2080.tar.gz trackermap-server-105e4b943e618d6fa8200d25225caeb4680c2080.tar.bz2 trackermap-server-105e4b943e618d6fa8200d25225caeb4680c2080.zip |
Ruptela - saner ignition decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java index c9efd8f7b..85f0d407a 100644 --- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -99,9 +99,6 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { case 4: position.set("di" + (id - 1), readValue(buf, length, false)); break; - case 5: - position.set(Position.KEY_IGNITION, readValue(buf, length, false) == 1); - break; case 29: position.set(Position.KEY_POWER, readValue(buf, length, false)); break; @@ -141,6 +138,10 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { case 197: position.set(Position.KEY_RPM, readValue(buf, length, false) * 0.125); break; + case 251: + case 409: + position.set(Position.KEY_IGNITION, readValue(buf, length, false) == 1); + break; case 410: if (readValue(buf, length, false) > 0) { position.set(Position.KEY_ALARM, Position.ALARM_TOW); |