aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-06-12 22:22:50 +0200
committerMatjaž Črnko <m.crnko@txt.si>2023-06-12 22:22:50 +0200
commitf40a3307d7b77fd007572ee80ba3f0a0dd05cb51 (patch)
tree174c20f27a8924d378add33d603c89ea943ea3b5 /src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
parent39ae0f3b25ba198c74a022bae059c45c4d0ac985 (diff)
downloadtrackermap-server-f40a3307d7b77fd007572ee80ba3f0a0dd05cb51.tar.gz
trackermap-server-f40a3307d7b77fd007572ee80ba3f0a0dd05cb51.tar.bz2
trackermap-server-f40a3307d7b77fd007572ee80ba3f0a0dd05cb51.zip
Ruptela - only use GPS Antenna Cut Alarm when we know for sure that it's disconnected.
Diffstat (limited to 'src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 33372224b..737d30f10 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -177,7 +177,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 415:
- if (readValue(buf, length, false) != 1) {
+ if (readValue(buf, length, false) == 0) {
position.set(Position.KEY_ALARM, Position.ALARM_GPS_ANTENNA_CUT);
}
break;