From 8b56fec5a7cec7c702220c23bfd7ac3722d3678e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 19 Nov 2019 21:52:49 -0800 Subject: Fix coordinates decoding --- src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/traccar/protocol') diff --git a/src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java b/src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java index 34d749816..eae37386a 100644 --- a/src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java @@ -73,7 +73,7 @@ public class SolarPoweredProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(-position.getLatitude()); } position.setLongitude(buf.readUnsignedInt() * 0.000001); - if (BitUtil.check(status, 3)) { + if (BitUtil.check(status, 2)) { position.setLongitude(-position.getLongitude()); } position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedByte())); -- cgit v1.2.3