diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-04 20:36:08 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 20:36:08 +1300 |
commit | 8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e (patch) | |
tree | a961249cc9bc88524c7e174f7ef3a49b8722ed9d /src/org/traccar | |
parent | 347880dbffce82f8d2859077b750b6245ea7d0ac (diff) | |
parent | 2574843af1ffebe29f5038fd04dc23a3b5f62840 (diff) | |
download | traccar-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.tar.gz traccar-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.tar.bz2 traccar-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.zip |
Merge pull request #4156 from primavistalab/pv-changes
Fix Galileo power units
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/GalileoProtocolDecoder.java | 4 |
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()); |