diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-05 00:42:01 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-05 00:42:01 -0500 |
commit | 7eb264775a5415260443db91cd5f1c1e7548324d (patch) | |
tree | 7d90e178a96c05f28ec4049e2538b0645da4ee26 /src | |
parent | 26af00beda91becae8370c6edc4761340323b1ea (diff) | |
download | trackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.tar.gz trackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.tar.bz2 trackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.zip |
Fixed bug in recording KEY_BATTERY in AplicomProtocol;
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/AplicomProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index 93882cd4a..39f5fbc24 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -234,8 +234,8 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { } if ((selector & 0x8000) != 0) { - position.set(Position.KEY_POWER, buf.readUnsignedShort() / 1000.0); - position.set(Position.KEY_BATTERY, buf.readUnsignedShort()); + position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001); + position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.001); } // Pulse rate 1 |