aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcardus <joaquim_cardeira@hotmail.com>2024-06-30 04:34:25 +0100
committerjcardus <joaquim_cardeira@hotmail.com>2024-06-30 04:34:25 +0100
commitbe3180dce3889e201340d1542df46288191ee8f5 (patch)
treef017123415dc084299f8f2462a7d2356f60601dd
parent836f62d1f58af68d98d3815a67ed82df711c2871 (diff)
downloadtrackermap-server-be3180dce3889e201340d1542df46288191ee8f5.tar.gz
trackermap-server-be3180dce3889e201340d1542df46288191ee8f5.tar.bz2
trackermap-server-be3180dce3889e201340d1542df46288191ee8f5.zip
don't store false for KEY_CHARGE
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index b1b065780..8afe04d0f 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -780,9 +780,6 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
if (length >= 5) {
short batteryStatus = buf.readUnsignedByte();
switch (batteryStatus) {
- case 1:
- position.set(Position.KEY_CHARGE, false);
- break;
case 2:
case 3:
position.set(Position.KEY_CHARGE, true);