diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-30 05:32:17 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-30 05:32:17 +1300 |
commit | 137adb0507cacb77c7180d06526f5258f857de57 (patch) | |
tree | 2771cc4ccf75a4f013f8ea88c3256ba1493c0767 /src/org/traccar | |
parent | e17b26a28a23af4d8a2c7e33d94105a22d566193 (diff) | |
download | trackermap-server-137adb0507cacb77c7180d06526f5258f857de57.tar.gz trackermap-server-137adb0507cacb77c7180d06526f5258f857de57.tar.bz2 trackermap-server-137adb0507cacb77c7180d06526f5258f857de57.zip |
Implement missing MiniFinder alarms
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java index 1b49bccb0..da03dc8bf 100644 --- a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java +++ b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java @@ -112,6 +112,9 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(flags, 8)) { position.set(Position.KEY_ALARM, Position.ALARM_FALL_DOWN); } + if (BitUtil.check(flags, 9) || BitUtil.check(flags, 10) || BitUtil.check(flags, 11)) { + position.set(Position.KEY_ALARM, Position.ALARM_GEOFENCE); + } if (BitUtil.check(flags, 12)) { position.set(Position.KEY_ALARM, Position.ALARM_LOW_BATTERY); } @@ -120,6 +123,7 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { } position.set(Position.KEY_GSM, BitUtil.between(flags, 16, 20)); + position.set(Position.KEY_CHARGE, BitUtil.check(flags, 22)); position.setAltitude(parser.nextDouble()); |