aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MtxProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/MtxProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MtxProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/MtxProtocolDecoder.java b/src/org/traccar/protocol/MtxProtocolDecoder.java
index 3b8620e2c..989d8540c 100644
--- a/src/org/traccar/protocol/MtxProtocolDecoder.java
+++ b/src/org/traccar/protocol/MtxProtocolDecoder.java
@@ -94,13 +94,13 @@ public class MtxProtocolDecoder extends BaseProtocolDecoder {
// Location
position.setValid(true);
- position.setLatitude(Double.valueOf(parser.group(index++)));
- position.setLongitude(Double.valueOf(parser.group(index++)));
- position.setSpeed(Double.valueOf(parser.group(index++)));
- position.setCourse(Double.valueOf(parser.group(index++)));
+ position.setLatitude(Double.parseDouble(parser.group(index++)));
+ position.setLongitude(Double.parseDouble(parser.group(index++)));
+ position.setSpeed(Double.parseDouble(parser.group(index++)));
+ position.setCourse(Double.parseDouble(parser.group(index++)));
// Other
- position.set(Event.KEY_ODOMETER, Double.valueOf(parser.group(index++)));
+ position.set(Event.KEY_ODOMETER, Double.parseDouble(parser.group(index++)));
position.set(Event.KEY_INPUT, parser.group(index++));
position.set(Event.KEY_OUTPUT, parser.group(index++));
position.set(Event.PREFIX_ADC + 1, parser.group(index++));