diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-15 11:41:49 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-15 11:42:14 +1200 |
commit | f06a4a99f0457cb385dd3465b5be592551a3530b (patch) | |
tree | 8050927920e04e7fc7c9ca83349f1e82ff835dc8 /src/org/traccar/protocol/WatchProtocolDecoder.java | |
parent | 86099e8094713c1d645c091c83aa0e5db4b3d6c5 (diff) | |
download | trackermap-server-f06a4a99f0457cb385dd3465b5be592551a3530b.tar.gz trackermap-server-f06a4a99f0457cb385dd3465b5be592551a3530b.tar.bz2 trackermap-server-f06a4a99f0457cb385dd3465b5be592551a3530b.zip |
Add missing Watch alarms
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java index 7af856a9c..d55c307da 100644 --- a/src/org/traccar/protocol/WatchProtocolDecoder.java +++ b/src/org/traccar/protocol/WatchProtocolDecoder.java @@ -76,6 +76,8 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { return Position.ALARM_GEOFENCE_ENTER; } else if (BitUtil.check(status, 3)) { return Position.ALARM_OVERSPEED; + } else if (BitUtil.check(status, 4)) { + return Position.ALARM_MOVEMENT; } else if (BitUtil.check(status, 16)) { return Position.ALARM_SOS; } else if (BitUtil.check(status, 17)) { @@ -84,6 +86,8 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder { return Position.ALARM_GEOFENCE_EXIT; } else if (BitUtil.check(status, 19)) { return Position.ALARM_GEOFENCE_ENTER; + } else if (BitUtil.check(status, 20)) { + return Position.ALARM_REMOVING; } return null; } |