aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-06-12 18:15:28 +0200
committerMatjaž Črnko <m.crnko@txt.si>2023-06-12 18:15:28 +0200
commitacbb3b36fab3f03682f454c3a64a1a5c5bef4fd5 (patch)
tree2ac9d39f1f7b356b3f5d1f37b1a99cc35f1987b3 /src
parent5ac55028cb315acec7e8f966c5ab11bdcc2c81bb (diff)
downloadtrackermap-server-acbb3b36fab3f03682f454c3a64a1a5c5bef4fd5.tar.gz
trackermap-server-acbb3b36fab3f03682f454c3a64a1a5c5bef4fd5.tar.bz2
trackermap-server-acbb3b36fab3f03682f454c3a64a1a5c5bef4fd5.zip
Ruptela - use > 0 for boolean comparison
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 2a552a874..d86476f9a 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -157,14 +157,14 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_CHARGE, readValue(buf, length, false) > 0);
break;
case 173:
- position.set(Position.KEY_MOTION, readValue(buf, length, false) == 1);
+ position.set(Position.KEY_MOTION, readValue(buf, length, false) > 0);
break;
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);
+ position.set(Position.KEY_IGNITION, readValue(buf, length, false) > 0);
break;
case 410:
if (readValue(buf, length, false) > 0) {