From 6e606df6e6686a40bffda5b872b0825599909cd2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 24 Aug 2016 13:40:01 +1200 Subject: Remove motion alarm type --- src/org/traccar/protocol/MiniFinderProtocolDecoder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/org/traccar/protocol') 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); } -- cgit v1.2.3