diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/FlexibleReportProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |