From 2574843af1ffebe29f5038fd04dc23a3b5f62840 Mon Sep 17 00:00:00 2001 From: primavistalab Date: Tue, 4 Dec 2018 16:57:42 +1000 Subject: Fix Galileo power units --- src/org/traccar/protocol/GalileoProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar') 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()); -- cgit v1.2.3