diff options
Diffstat (limited to 'src/org/traccar/protocol/MiniFinderProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/MiniFinderProtocolDecoder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java index 2f2d96306..7cdfab3a8 100644 --- a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java +++ b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java @@ -88,10 +88,10 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { position.setTime(time.getTime()); // Location - 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++))); // Flags String flags = parser.group(index++); @@ -99,7 +99,7 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder { position.setValid((Integer.parseInt(flags, 16) & 0x01) != 0); // Altitude - position.setAltitude(Double.valueOf(parser.group(index++))); + position.setAltitude(Double.parseDouble(parser.group(index++))); // Battery position.set(Event.KEY_BATTERY, parser.group(index++)); |