aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GalileoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-12-04 20:36:08 +1300
committerGitHub <noreply@github.com>2018-12-04 20:36:08 +1300
commit8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e (patch)
treea961249cc9bc88524c7e174f7ef3a49b8722ed9d /src/org/traccar/protocol/GalileoProtocolDecoder.java
parent347880dbffce82f8d2859077b750b6245ea7d0ac (diff)
parent2574843af1ffebe29f5038fd04dc23a3b5f62840 (diff)
downloadtrackermap-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.tar.gz
trackermap-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.tar.bz2
trackermap-server-8c0d4b84f9664aa1d2e578a8a68395dc7e32c88e.zip
Merge pull request #4156 from primavistalab/pv-changes
Fix Galileo power units
Diffstat (limited to 'src/org/traccar/protocol/GalileoProtocolDecoder.java')
-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());