From 91dc8dab007f5eb2b3f2036b3aab9a5f70271c0f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Jan 2019 08:59:58 -0800 Subject: Fix coordinates decoding --- src/org/traccar/protocol/SatsolProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/SatsolProtocolDecoder.java b/src/org/traccar/protocol/SatsolProtocolDecoder.java index b12a81a52..77d292d92 100644 --- a/src/org/traccar/protocol/SatsolProtocolDecoder.java +++ b/src/org/traccar/protocol/SatsolProtocolDecoder.java @@ -67,8 +67,8 @@ public class SatsolProtocolDecoder extends BaseProtocolDecoder { position.setDeviceId(deviceSession.getDeviceId()); position.setTime(new Date(buf.readUnsignedIntLE() * 1000)); - position.setLongitude(buf.readUnsignedIntLE() * 0.000001); position.setLatitude(buf.readUnsignedIntLE() * 0.000001); + position.setLongitude(buf.readUnsignedIntLE() * 0.000001); position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShortLE())); position.setAltitude(buf.readShortLE()); position.setCourse(buf.readUnsignedShortLE()); -- cgit v1.2.3