aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/At2000ProtocolDecoder.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/At2000ProtocolDecoder.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/At2000ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/At2000ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/At2000ProtocolDecoder.java b/src/org/traccar/protocol/At2000ProtocolDecoder.java
index 182066629..70840c37d 100644
--- a/src/org/traccar/protocol/At2000ProtocolDecoder.java
+++ b/src/org/traccar/protocol/At2000ProtocolDecoder.java
@@ -140,7 +140,7 @@ public class At2000ProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort());
position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort());
- position.set(Position.KEY_POWER, buf.readUnsignedShort() + "mV");
+ position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.001);
buf.readUnsignedShort(); // cid
position.set(Position.KEY_RSSI, buf.readUnsignedByte());