aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-26 13:19:15 -0800
committerGitHub <noreply@github.com>2022-01-26 13:19:15 -0800
commitae4e73babace710a004172c77a88c5f2dfba3e7b (patch)
tree8d28d8121cedea09c4fc2f4b918e38e21d5dd95b /src/main/java
parentafee330248c3e39029102ab984382ae9723895ae (diff)
parentb77326b34401d8df3674d4de1e3efd44dde7081b (diff)
downloadtrackermap-server-ae4e73babace710a004172c77a88c5f2dfba3e7b.tar.gz
trackermap-server-ae4e73babace710a004172c77a88c5f2dfba3e7b.tar.bz2
trackermap-server-ae4e73babace710a004172c77a88c5f2dfba3e7b.zip
Merge pull request #4801 from l-e-o-n-c-e/patch-2
Add an alarm code on Watch protocol
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index 4990cfd65..cf58b0fed 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -89,6 +89,8 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_GEOFENCE_EXIT;
} else if (BitUtil.check(status, 2)) {
return Position.ALARM_GEOFENCE_ENTER;
+ } else if (BitUtil.check(status, 14)) {
+ return Position.ALARM_POWER_CUT;
} else if (BitUtil.check(status, 16)) {
return Position.ALARM_SOS;
} else if (BitUtil.check(status, 17)) {