diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-25 20:05:29 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-05-25 20:05:29 -0700 |
commit | 9af428e5ca6a00fc809eb74f576c71485d36f076 (patch) | |
tree | c67bead30b34267488ced1bd4f160772f1637e1e /src/main/java/org/traccar | |
parent | 94a958af9679265b7ee555e11a547ead1557b513 (diff) | |
download | traccar-server-9af428e5ca6a00fc809eb74f576c71485d36f076.tar.gz traccar-server-9af428e5ca6a00fc809eb74f576c71485d36f076.tar.bz2 traccar-server-9af428e5ca6a00fc809eb74f576c71485d36f076.zip |
Fix voltage decoding
Diffstat (limited to 'src/main/java/org/traccar')
-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(); |