aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EelinkProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:44:48 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:44:48 -0500
commitc62fa33fb0748f44d9584970924c90c70f4f976a (patch)
tree66381a8c1c72eff1c1133be4f8defbc5a07bade5 /src/org/traccar/protocol/EelinkProtocolDecoder.java
parent7eb264775a5415260443db91cd5f1c1e7548324d (diff)
downloadtrackermap-server-c62fa33fb0748f44d9584970924c90c70f4f976a.tar.gz
trackermap-server-c62fa33fb0748f44d9584970924c90c70f4f976a.tar.bz2
trackermap-server-c62fa33fb0748f44d9584970924c90c70f4f976a.zip
Converted all KEY_POWER and KEY_BATTERY to volts; Removed string "mV";
Diffstat (limited to 'src/org/traccar/protocol/EelinkProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java
index 0296d22fe..0f6551cc3 100644
--- a/src/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -130,7 +130,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
}
position.set(Position.KEY_STATUS, status);
- position.set(Position.KEY_BATTERY, buf.readUnsignedShort() + "mV");
+ position.set(Position.KEY_BATTERY, buf.readUnsignedShort() * 0.001);
position.set(Position.KEY_RSSI, buf.readUnsignedShort());