diff options
Diffstat (limited to 'src/org/traccar/protocol/GotopProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/GotopProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GotopProtocolDecoder.java b/src/org/traccar/protocol/GotopProtocolDecoder.java index aa1ab57fb..f938887e2 100644 --- a/src/org/traccar/protocol/GotopProtocolDecoder.java +++ b/src/org/traccar/protocol/GotopProtocolDecoder.java @@ -70,11 +70,11 @@ public class GotopProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_HEM)); position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_HEM)); - position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble())); + position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble(0))); position.set(Position.KEY_STATUS, parser.next()); - position.setCourse(parser.nextDouble()); + position.setCourse(parser.nextDouble(0)); return position; } |