aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-18 09:56:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-18 09:56:38 +1300
commit00a6a9ed3718937b2072d5a6301b5c273d21206f (patch)
tree494efd0343e9288462048540d3a5e54df4b9474f /src/org/traccar/protocol/MeiligaoProtocolDecoder.java
parent8d84469407ea7e6ee84adc9e7fd68f26d07805b9 (diff)
downloadtrackermap-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.java6
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;
}