aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-24 13:40:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-24 13:40:29 +1200
commit6e606df6e6686a40bffda5b872b0825599909cd2 (patch)
tree05f95c113eb18c935787bb5264e39e6395593021 /src/org/traccar/protocol/MiniFinderProtocolDecoder.java
parent5536fbe00c022c151007ad077d911b5162201cd4 (diff)
downloadtrackermap-server-6e606df6e6686a40bffda5b872b0825599909cd2.tar.gz
trackermap-server-6e606df6e6686a40bffda5b872b0825599909cd2.tar.bz2
trackermap-server-6e606df6e6686a40bffda5b872b0825599909cd2.zip
Remove motion alarm type
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocolDecoder.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
index 3eb559cc4..348476c6b 100644
--- a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
+++ b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
@@ -114,10 +114,7 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder {
if (BitUtil.check(flags, 12)) {
position.set(Position.KEY_ALARM, Position.ALARM_LOW_BATTERY);
}
- if (BitUtil.check(flags, 14)) {
- position.set(Position.KEY_ALARM, Position.ALARM_MOTION);
- }
- if (BitUtil.check(flags, 15)) {
+ if (BitUtil.check(flags, 15) || BitUtil.check(flags, 14)) {
position.set(Position.KEY_ALARM, Position.ALARM_MOVEMENT);
}