aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-21 17:36:51 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-21 17:36:51 -0700
commitffc1b33d5d15068294aecc64dbeae20dd77d972d (patch)
tree1bd369ad8b839cb310499a2d75d5ff30613cd24a /src/main
parent259c6fe4aa0132ae8d6ca6eb63c82e8ef64d8a6a (diff)
downloadtrackermap-server-ffc1b33d5d15068294aecc64dbeae20dd77d972d.tar.gz
trackermap-server-ffc1b33d5d15068294aecc64dbeae20dd77d972d.tar.bz2
trackermap-server-ffc1b33d5d15068294aecc64dbeae20dd77d972d.zip
Huabao speeding alarm
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 0ae08af37..b0ad9a229 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -122,6 +122,9 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
|| BitUtil.check(value, 10) || BitUtil.check(value, 11)) {
return Position.ALARM_FAULT;
}
+ if (BitUtil.check(value, 7)) {
+ return Position.ALARM_LOW_BATTERY;
+ }
if (BitUtil.check(value, 8)) {
return Position.ALARM_POWER_OFF;
}