aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-19 21:52:49 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-19 21:52:49 -0800
commit8b56fec5a7cec7c702220c23bfd7ac3722d3678e (patch)
tree0a8987105330499294c81069795c271ac896b002 /src/main
parent325479e6386d8437e410076cfbada69db7af7dbb (diff)
downloadtraccar-server-8b56fec5a7cec7c702220c23bfd7ac3722d3678e.tar.gz
traccar-server-8b56fec5a7cec7c702220c23bfd7ac3722d3678e.tar.bz2
traccar-server-8b56fec5a7cec7c702220c23bfd7ac3722d3678e.zip
Fix coordinates decoding
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/SolarPoweredProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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()));