diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/model/Position.java | 1 | ||||
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocolDecoder.java | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java index a259e773a..f592ee4b9 100644 --- a/src/org/traccar/model/Position.java +++ b/src/org/traccar/model/Position.java @@ -78,7 +78,6 @@ public class Position extends Message { public static final String ALARM_OVERSPEED = "overspeed"; public static final String ALARM_FALL_DOWN = "fallDown"; public static final String ALARM_LOW_BATTERY = "lowBattery"; - public static final String ALARM_MOTION = "motion"; public static final String ALARM_FAULT = "fault"; public static final String ALARM_POWER_OFF = "powerOff"; public static final String ALARM_GEOFENCE = "geofence"; 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); } |