aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-16 21:28:32 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-16 21:28:32 -0700
commit2e056dcecffcb139445599242d18f9d22a849e40 (patch)
tree82ab335ab0f077033e4c3b284bad0c33fac36798
parent4fb9eba760b571d86fff4c1b0f645a7c6d4fbe16 (diff)
downloadtrackermap-server-2e056dcecffcb139445599242d18f9d22a849e40.tar.gz
trackermap-server-2e056dcecffcb139445599242d18f9d22a849e40.tar.bz2
trackermap-server-2e056dcecffcb139445599242d18f9d22a849e40.zip
Fix voltage decoding
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index cd7273f6b..4d77d554e 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -399,8 +399,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
break;
case 0xEE:
position.set(Position.KEY_RSSI, buf.readUnsignedByte());
- position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);
- position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.01);
+ position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001);
+ position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.001);
position.set(Position.KEY_SATELLITES, buf.readUnsignedByte());
break;
default: