From be3180dce3889e201340d1542df46288191ee8f5 Mon Sep 17 00:00:00 2001 From: jcardus Date: Sun, 30 Jun 2024 04:34:25 +0100 Subject: don't store false for KEY_CHARGE --- src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/main/java/org') 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); -- cgit v1.2.3