From 9af428e5ca6a00fc809eb74f576c71485d36f076 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 25 May 2021 20:05:29 -0700 Subject: Fix voltage decoding --- .../java/org/traccar/protocol/FlexibleReportProtocolDecoder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/org/traccar/protocol/FlexibleReportProtocolDecoder.java b/src/main/java/org/traccar/protocol/FlexibleReportProtocolDecoder.java index ce75a65c1..339eccb37 100644 --- a/src/main/java/org/traccar/protocol/FlexibleReportProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/FlexibleReportProtocolDecoder.java @@ -124,16 +124,16 @@ public class FlexibleReportProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedShort(); // gps accuracy } if (BitUtil.check(mask, 6)) { - position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01); + position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001); } if (BitUtil.check(mask, 7)) { - position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.01); + position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.001); } if (BitUtil.check(mask, 8)) { - position.set("auxPower", buf.readUnsignedShort() * 0.01); + position.set("auxPower", buf.readUnsignedShort() * 0.001); } if (BitUtil.check(mask, 9)) { - position.set("solarPower", buf.readUnsignedShort() * 0.01); + position.set("solarPower", buf.readUnsignedShort() * 0.001); } if (BitUtil.check(mask, 10)) { int cellService = buf.readUnsignedByte(); -- cgit v1.2.3