diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-23 11:16:58 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-23 11:16:58 +1300 |
commit | 49eeee0e2b73799d7b9ba1c70b4519d0561338c0 (patch) | |
tree | 3cb8c735d08a4cdd5889043f38b4d9a5a85ad241 /src/org/traccar | |
parent | 22d3d0b95866dd273a5c4537d727758e8a1ddd15 (diff) | |
download | trackermap-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.tar.gz trackermap-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.tar.bz2 trackermap-server-49eeee0e2b73799d7b9ba1c70b4519d0561338c0.zip |
Fix a problem in Fox decoder
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/FoxProtocolDecoder.java | 3 |
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; |