diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-21 18:36:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-21 18:36:12 -0700 |
commit | 033e50725806fdd5597e37a24eff763800e1cdfa (patch) | |
tree | 25b96576e1144f6c885391eea8dd7f7c3aa001a0 | |
parent | 89a32633c1bd9119990b7b9070a1ba04e1eb0ea4 (diff) | |
download | trackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.tar.gz trackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.tar.bz2 trackermap-server-033e50725806fdd5597e37a24eff763800e1cdfa.zip |
Fix validity decoding
-rw-r--r-- | src/main/java/org/traccar/protocol/UproProtocolDecoder.java | 2 |
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()); } |