aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-15 20:43:53 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-15 20:43:53 -0700
commita498a5584dc21d8ee3c1bdfe56dd158b789d463e (patch)
tree45f7b26c63b157cfcc523bd786a3c503cdecc66b /src/main/java/org
parent9e044f48f06b1201eaf642b2e53e5ba40c46c0ff (diff)
downloadtrackermap-server-a498a5584dc21d8ee3c1bdfe56dd158b789d463e.tar.gz
trackermap-server-a498a5584dc21d8ee3c1bdfe56dd158b789d463e.tar.bz2
trackermap-server-a498a5584dc21d8ee3c1bdfe56dd158b789d463e.zip
Fix power decoding
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index a562267aa..f67cc3d8f 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -305,13 +305,13 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set("fuel1", buf.readUnsignedShort() * 0.1);
buf.readUnsignedByte(); // unused
break;
- case 0x0004:
- position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);
- break;
case 0x0023:
position.set("fuel2", Double.parseDouble(
buf.readCharSequence(6, StandardCharsets.US_ASCII).toString()));
break;
+ case 0x00CE:
+ position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);
+ break;
default:
buf.skipBytes(extendedLength - 2);
break;