aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-23 11:16:58 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-23 11:16:58 +1300
commit49eeee0e2b73799d7b9ba1c70b4519d0561338c0 (patch)
tree3cb8c735d08a4cdd5889043f38b4d9a5a85ad241 /src/org
parent22d3d0b95866dd273a5c4537d727758e8a1ddd15 (diff)
downloadtraccar-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.tar.gz
traccar-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.tar.bz2
traccar-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.zip
Fix a problem in Fox decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/FoxProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/FoxProtocolDecoder.java b/src/org/traccar/protocol/FoxProtocolDecoder.java
index f57acf92a..1b50545f8 100644
--- a/src/org/traccar/protocol/FoxProtocolDecoder.java
+++ b/src/org/traccar/protocol/FoxProtocolDecoder.java
@@ -109,13 +109,14 @@ public class FoxProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_INPUT, parser.nextInt(2));
position.set(Event.KEY_POWER, parser.nextDouble() / 10);
position.set(Event.PREFIX_TEMP + 1, parser.nextInt());
+ position.set(Event.KEY_RPM, parser.nextInt());
position.set(Event.KEY_FUEL, parser.nextInt());
position.set(Event.PREFIX_ADC + 1, parser.nextInt());
position.set(Event.PREFIX_ADC + 2, parser.nextInt());
position.set(Event.KEY_OUTPUT, parser.nextInt(2));
position.set(Event.KEY_ODOMETER, parser.nextInt());
- position.set("status-data", parser.nextInt());
+ position.set("status-data", parser.next());
return position;