From ad6720a20bc9abb728630b96fc811e7293e7a307 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 28 Jul 2021 21:54:28 -0700 Subject: Set location as valid --- src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java index 70f1b1485..d20e18556 100644 --- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java @@ -217,6 +217,7 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder { position.set("tagId", ByteBufUtil.hexDump(buf.readSlice(6))); position.setLatitude(buf.readIntLE() * 0.0000001); position.setLongitude(buf.readIntLE() * 0.0000001); + position.setValid(true); hasLocation = true; break; case 0x24: @@ -233,6 +234,7 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(beaconFlags, 7)) { position.setLatitude(buf.readIntLE() * 0.0000001); position.setLongitude(buf.readIntLE() * 0.0000001); + position.setValid(true); hasLocation = true; } if (BitUtil.check(beaconFlags, 6)) { -- cgit v1.2.3