aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 21:59:54 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-01-18 21:59:54 -0800
commit48ec866d8e50ce2ef63ca336648db611cc233916 (patch)
tree4984619952ef65205f564e0667286a5795e6decd /src/main/java/org
parent889fabc6ca7f7bc8d744af1f9184d43b76744478 (diff)
downloadtrackermap-server-48ec866d8e50ce2ef63ca336648db611cc233916.tar.gz
trackermap-server-48ec866d8e50ce2ef63ca336648db611cc233916.tar.bz2
trackermap-server-48ec866d8e50ce2ef63ca336648db611cc233916.zip
Decode disassembling alarm
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index b0cd1ab8c..a3d16cb62 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -115,6 +115,9 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
if (BitUtil.check(value, 8)) {
return Position.ALARM_POWER_OFF;
}
+ if (BitUtil.check(value, 17)) {
+ return Position.ALARM_TAMPERING;
+ }
if (BitUtil.check(value, 20)) {
return Position.ALARM_GEOFENCE;
}