aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-23 15:35:39 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-23 15:35:39 +1200
commit18ffeeb37c5efa54ffea852ad500f2d06ddba5be (patch)
tree5f0ee77bc7189743d10c5c0690da4510e43fef10 /src/org/traccar/protocol
parentc4b95a8e5e969e1b87f9068c92aae45bacd9e283 (diff)
downloadtrackermap-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.tar.gz
trackermap-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.tar.bz2
trackermap-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.zip
Add watch fall-down alarm
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index d55c307da..d0c066954 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -88,6 +88,8 @@ 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)) {
+ return Position.ALARM_FALL_DOWN;
}
return null;
}