diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-18 09:56:38 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-18 09:56:38 +1300 |
commit | 00a6a9ed3718937b2072d5a6301b5c273d21206f (patch) | |
tree | 494efd0343e9288462048540d3a5e54df4b9474f /src/org/traccar/protocol/MeiligaoProtocolDecoder.java | |
parent | 8d84469407ea7e6ee84adc9e7fd68f26d07805b9 (diff) | |
download | trackermap-server-00a6a9ed3718937b2072d5a6301b5c273d21206f.tar.gz trackermap-server-00a6a9ed3718937b2072d5a6301b5c273d21206f.tar.bz2 trackermap-server-00a6a9ed3718937b2072d5a6301b5c273d21206f.zip |
Minor styles modifications
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java index 706655b83..74b7c0e52 100644 --- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java +++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java @@ -91,8 +91,8 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { .number("(d+.d+),") // average fuel .number("(d+.d+),") // driving range .number("(d+.?d*),") // odometer - .number("(d+.d+),") // Single Fuel Consumption - .number("(d+.d+),") // Total Fuel Consumption + .number("(d+.d+),") // single fuel consumption + .number("(d+.d+),") // total fuel consumption .number("(d+),") // error code count .number("(d+),") // harsh acceleration count .number("(d+)") // harsh break count @@ -303,6 +303,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_DTCS, parser.nextInt()); position.set("harshAcelerationNo", parser.nextInt()); position.set("harshBreakerNo", parser.nextInt()); + return position; } @@ -323,6 +324,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { position.set("historyHightestRPM", parser.nextInt()); position.set("totalHarshAccerleration", parser.nextInt()); position.set("totalHarshBrake", parser.nextInt()); + return position; } |