diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-05 00:44:48 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-05 00:44:48 -0500 |
commit | c62fa33fb0748f44d9584970924c90c70f4f976a (patch) | |
tree | 66381a8c1c72eff1c1133be4f8defbc5a07bade5 /src/org/traccar/protocol/TeltonikaProtocolDecoder.java | |
parent | 7eb264775a5415260443db91cd5f1c1e7548324d (diff) | |
download | trackermap-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/TeltonikaProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index e55d354cf..30a3f4cda 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -96,10 +96,10 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { position.set(Position.PREFIX_ADC + 1, readValue(buf, length, false)); break; case 66: - position.set(Position.KEY_POWER, readValue(buf, length, false) + "mV"); + position.set(Position.KEY_POWER, readValue(buf, length, false) * 0.001); break; case 67: - position.set(Position.KEY_BATTERY, readValue(buf, length, false) + "mV"); + position.set(Position.KEY_BATTERY, readValue(buf, length, false) * 0.001); break; case 70: position.set(Position.KEY_DEVICE_TEMP, readValue(buf, length, true) * 0.1); |