diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-20 10:10:59 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-20 10:10:59 +1200 |
commit | 8e4d44e045c6e0c800b3b353f6f55c64d731428c (patch) | |
tree | f4aaca0b2103b7437cd1113385c88656689e34ff /src/org/traccar | |
parent | d98cd05a989bd0cd3f6dd4c581e46b0cbbd6424a (diff) | |
download | traccar-server-8e4d44e045c6e0c800b3b353f6f55c64d731428c.tar.gz traccar-server-8e4d44e045c6e0c800b3b353f6f55c64d731428c.tar.bz2 traccar-server-8e4d44e045c6e0c800b3b353f6f55c64d731428c.zip |
Adjust TK103 voltage values
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index a0998d50d..a76c208b5 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -118,12 +118,12 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { int battery = parser.nextInt(); if (battery != 65535) { - position.set(Position.KEY_BATTERY, battery); + position.set(Position.KEY_BATTERY, battery * 0.01); } int power = parser.nextInt(); if (power != 65535) { - position.set(Position.KEY_POWER, power); + position.set(Position.KEY_POWER, power * 0.1); } return position; |