aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorprimavistalab <evgeniy.ukhanov@gmail.com>2018-12-04 16:57:42 +1000
committerprimavistalab <evgeniy.ukhanov@gmail.com>2018-12-04 17:03:41 +1000
commit2574843af1ffebe29f5038fd04dc23a3b5f62840 (patch)
treea961249cc9bc88524c7e174f7ef3a49b8722ed9d /src/org/traccar/protocol
parent347880dbffce82f8d2859077b750b6245ea7d0ac (diff)
downloadtrackermap-server-2574843af1ffebe29f5038fd04dc23a3b5f62840.tar.gz
trackermap-server-2574843af1ffebe29f5038fd04dc23a3b5f62840.tar.bz2
trackermap-server-2574843af1ffebe29f5038fd04dc23a3b5f62840.zip
Fix Galileo power units
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GalileoProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GalileoProtocolDecoder.java b/src/org/traccar/protocol/GalileoProtocolDecoder.java
index 64a4a6ea8..01c55a9ae 100644
--- a/src/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -160,10 +160,10 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_STATUS, buf.readUnsignedShortLE());
break;
case 0x41:
- position.set(Position.KEY_POWER, buf.readUnsignedShortLE());
+ position.set(Position.KEY_POWER, buf.readUnsignedShortLE() / 1000.0);
break;
case 0x42:
- position.set(Position.KEY_BATTERY, buf.readUnsignedShortLE());
+ position.set(Position.KEY_BATTERY, buf.readUnsignedShortLE() / 1000.0);
break;
case 0x43:
position.set(Position.KEY_DEVICE_TEMP, buf.readByte());