aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index b153984cb..db28bae51 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -87,7 +87,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)(dd)(dd),") // time
.number("(d+),") // odometer
.number("(d+.d+)?,") // fuel instant
- .number("(?:d+.d+)?,") // fuel average
+ .number("(d+.d+)?,") // fuel average
.number("(d+),") // hours
.number("(d+),") // speed
.number("d+.?d*%,") // power load
@@ -189,7 +189,8 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
getLastLocation(position, dateBuilder.getDate());
position.set(Position.KEY_ODOMETER, parser.nextInt());
- position.set(Position.KEY_FUEL, parser.next());
+ position.set(Position.KEY_FUEL_INSTANT_CONSUMPTION, parser.next());
+ position.set(Position.KEY_FUEL_CONSUMPTION, parser.next());
position.set(Position.KEY_HOURS, parser.next());
position.set(Position.KEY_OBD_SPEED, parser.next());
position.set(Position.PREFIX_TEMP + 1, parser.next());