aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/RitiProtocolDecoder.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/RitiProtocolDecoder.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/RitiProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/RitiProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RitiProtocolDecoder.java b/src/org/traccar/protocol/RitiProtocolDecoder.java
index 8ff72a9c1..a879633c2 100644
--- a/src/org/traccar/protocol/RitiProtocolDecoder.java
+++ b/src/org/traccar/protocol/RitiProtocolDecoder.java
@@ -67,7 +67,7 @@ public class RitiProtocolDecoder extends BaseProtocolDecoder {
position.set("mode", buf.readUnsignedByte());
position.set(Position.KEY_COMMAND, buf.readUnsignedByte());
- position.set(Position.KEY_POWER, buf.readUnsignedShort() + "mV");
+ position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001);
buf.skipBytes(5); // status
buf.readUnsignedShort(); // idleCount