aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-05-25 20:05:29 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-05-25 20:05:29 -0700
commit9af428e5ca6a00fc809eb74f576c71485d36f076 (patch)
treec67bead30b34267488ced1bd4f160772f1637e1e /src/main/java/org/traccar
parent94a958af9679265b7ee555e11a547ead1557b513 (diff)
downloadtraccar-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.java8
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();