aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-21 18:36:12 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-21 18:36:12 -0700
commit033e50725806fdd5597e37a24eff763800e1cdfa (patch)
tree25b96576e1144f6c885391eea8dd7f7c3aa001a0 /src/main/java/org/traccar/protocol
parent89a32633c1bd9119990b7b9070a1ba04e1eb0ea4 (diff)
downloadtrackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.tar.gz
trackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.tar.bz2
trackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.zip
Fix validity decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/UproProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
index f23274a8f..ed714e464 100644
--- a/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/UproProtocolDecoder.java
@@ -71,7 +71,7 @@ public class UproProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_MIN_MIN));
int flags = parser.nextInt(0);
- position.setValid(BitUtil.check(flags, 0));
+ position.setValid(!BitUtil.check(flags, 0));
if (!BitUtil.check(flags, 1)) {
position.setLatitude(-position.getLatitude());
}