aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-07-11 14:56:32 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-07-11 14:56:32 -0700
commitfe45c5bbe8816db9b1ecc8f03267fe388dcec8ab (patch)
treef2ec457567002884b1a61e537e5a9e8e7bd5f4c3 /src/main/java/org/traccar
parent1d3cd09b327535388d78297c0f6a249a66331cea (diff)
downloadtrackermap-server-fe45c5bbe8816db9b1ecc8f03267fe388dcec8ab.tar.gz
trackermap-server-fe45c5bbe8816db9b1ecc8f03267fe388dcec8ab.tar.bz2
trackermap-server-fe45c5bbe8816db9b1ecc8f03267fe388dcec8ab.zip
Add missing alarm
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index 5ff0bbb6c..564acd7b4 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -101,7 +101,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_GEOFENCE_ENTER;
} else if (BitUtil.check(status, 20)) {
return Position.ALARM_REMOVING;
- } else if (BitUtil.check(status, 21)) {
+ } else if (BitUtil.check(status, 21) || BitUtil.check(status, 22)) {
return Position.ALARM_FALL_DOWN;
}
return null;