aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Xt013ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Xt013ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Xt013ProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/Xt013ProtocolDecoder.java b/src/org/traccar/protocol/Xt013ProtocolDecoder.java
index 69b259ba8..a61e8b82b 100644
--- a/src/org/traccar/protocol/Xt013ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xt013ProtocolDecoder.java
@@ -93,11 +93,11 @@ public class Xt013ProtocolDecoder extends BaseProtocolDecoder {
position.setTime(time.getTime());
// Location
- position.setLatitude(Double.valueOf(parser.group(index++)));
- position.setLongitude(Double.valueOf(parser.group(index++)));
- position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(parser.group(index++))));
- position.setCourse(Double.valueOf(parser.group(index++)));
- position.setAltitude(Double.valueOf(parser.group(index++)));
+ position.setLatitude(Double.parseDouble(parser.group(index++)));
+ position.setLongitude(Double.parseDouble(parser.group(index++)));
+ position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(parser.group(index++))));
+ position.setCourse(Double.parseDouble(parser.group(index++)));
+ position.setAltitude(Double.parseDouble(parser.group(index++)));
position.setValid(parser.group(index++).equals("F"));
// Other