aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/H02ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-30 16:37:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-30 16:37:19 +1300
commit735fc1483817da385dce0fb572440261b6a644a3 (patch)
tree28e3637fc3e4f38379d523045eb07f6e7194af5f /src/org/traccar/protocol/H02ProtocolDecoder.java
parente8f2247e719e44796a4d89f6973e3a3c0d21568a (diff)
downloadtrackermap-server-735fc1483817da385dce0fb572440261b6a644a3.tar.gz
trackermap-server-735fc1483817da385dce0fb572440261b6a644a3.tar.bz2
trackermap-server-735fc1483817da385dce0fb572440261b6a644a3.zip
Alternative H02 SOS and commands
Diffstat (limited to 'src/org/traccar/protocol/H02ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index eece99ebb..a5f87fe8f 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -74,7 +74,7 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
if (!BitUtil.check(status, 0)) {
position.set(Position.KEY_ALARM, Position.ALARM_VIBRATION);
- } else if (!BitUtil.check(status, 1)) {
+ } else if (!BitUtil.check(status, 1) || !BitUtil.check(status, 18)) {
position.set(Position.KEY_ALARM, Position.ALARM_SOS);
} else if (!BitUtil.check(status, 2)) {
position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED);