aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocolDecoder.java5
-rw-r--r--src/org/traccar/protocol/UlbotechProtocolDecoder.java2
2 files changed, 2 insertions, 5 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);
}
diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
index d97e8b339..9a951f770 100644
--- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java
+++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java
@@ -120,7 +120,7 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder {
return Position.ALARM_POWER_OFF;
}
if (BitUtil.check(alarm, 1)) {
- return Position.ALARM_MOTION;
+ return Position.ALARM_MOVEMENT;
}
if (BitUtil.check(alarm, 2)) {
return Position.ALARM_OVERSPEED;