aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/FoxProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:45:41 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-05 00:45:41 -0500
commit0ba3f3ba0fc3ab04cfbbc860afcb736d838a7057 (patch)
tree02f23f93fcbbebfbea187d95363956166b9945c1 /src/org/traccar/protocol/FoxProtocolDecoder.java
parentc62fa33fb0748f44d9584970924c90c70f4f976a (diff)
downloadtrackermap-server-0ba3f3ba0fc3ab04cfbbc860afcb736d838a7057.tar.gz
trackermap-server-0ba3f3ba0fc3ab04cfbbc860afcb736d838a7057.tar.bz2
trackermap-server-0ba3f3ba0fc3ab04cfbbc860afcb736d838a7057.zip
Performed all KEY_POWER and KEY_BATTERY conversions using multiplication versus division;
Diffstat (limited to 'src/org/traccar/protocol/FoxProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/FoxProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/FoxProtocolDecoder.java b/src/org/traccar/protocol/FoxProtocolDecoder.java
index e01c3aae3..e48b13cb7 100644
--- a/src/org/traccar/protocol/FoxProtocolDecoder.java
+++ b/src/org/traccar/protocol/FoxProtocolDecoder.java
@@ -108,7 +108,7 @@ public class FoxProtocolDecoder extends BaseProtocolDecoder {
position.setCourse(parser.nextDouble());
position.set(Position.KEY_INPUT, parser.nextInt(2));
- position.set(Position.KEY_POWER, parser.nextDouble() / 10);
+ position.set(Position.KEY_POWER, parser.nextDouble() * 0.1);
position.set(Position.PREFIX_TEMP + 1, parser.nextInt());
position.set(Position.KEY_RPM, parser.nextInt());
position.set(Position.KEY_FUEL_LEVEL, parser.nextInt());