diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/UuxProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java b/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java index 28d5345b0..545784865 100644 --- a/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/UuxProtocolDecoder.java @@ -98,11 +98,11 @@ public class UuxProtocolDecoder extends BaseProtocolDecoder { position.set(Position.KEY_SATELLITES, readInt(buf, 2)); double latitude = readInt(buf, 2); - latitude += readDouble(buf, 7); + latitude += readDouble(buf, 7) / 60; position.setLatitude(buf.readUnsignedByte() == 'S' ? -latitude : latitude); double longitude = readInt(buf, 3); - longitude += readDouble(buf, 7); + longitude += readDouble(buf, 7) / 60; position.setLongitude(buf.readUnsignedByte() == 'W' ? -longitude : longitude); position.setSpeed(readInt(buf, 3)); |