aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-10 19:34:15 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-10 19:34:15 -0700
commit4904b15558f05b3458fc5f80253707e51f0ff2c0 (patch)
treee6ac445c866efb456e6c32ae0b1e2d71dd7ceb1f /src/main/java/org
parent77fdac153e7a76e49cf84848d51a18cae00d31a2 (diff)
downloadtrackermap-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.tar.gz
trackermap-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.tar.bz2
trackermap-server-4904b15558f05b3458fc5f80253707e51f0ff2c0.zip
Anti-hijack trigger alarm
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/KhdProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java
index b4fce5cbe..251351a74 100644
--- a/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/KhdProtocolDecoder.java
@@ -73,6 +73,8 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_ALARM, Position.ALARM_GEOFENCE_EXIT);
} else if (BitUtil.check(status[0], 7)) {
position.set(Position.KEY_ALARM, Position.ALARM_GEOFENCE_ENTER);
+ } else if (BitUtil.check(status[1], 0)) {
+ position.set(Position.KEY_ALARM, Position.ALARM_SOS);
} else if (BitUtil.check(status[1], 1)) {
position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED);
} else if (BitUtil.check(status[1], 3)) {