aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:42:01 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:42:01 -0500
commit7eb264775a5415260443db91cd5f1c1e7548324d (patch)
tree7d90e178a96c05f28ec4049e2538b0645da4ee26
parent26af00beda91becae8370c6edc4761340323b1ea (diff)
downloadtrackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.tar.gz
trackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.tar.bz2
trackermap-server-7eb264775a5415260443db91cd5f1c1e7548324d.zip
Fixed bug in recording KEY_BATTERY in AplicomProtocol;
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java4
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