diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-23 15:35:39 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-23 15:35:39 +1200 |
commit | 18ffeeb37c5efa54ffea852ad500f2d06ddba5be (patch) | |
tree | 5f0ee77bc7189743d10c5c0690da4510e43fef10 | |
parent | c4b95a8e5e969e1b87f9068c92aae45bacd9e283 (diff) | |
download | traccar-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.tar.gz traccar-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.tar.bz2 traccar-server-18ffeeb37c5efa54ffea852ad500f2d06ddba5be.zip |
Add watch fall-down alarm
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolDecoder.java | 2 |
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; } |