diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-28 21:54:28 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-28 21:54:28 -0700 |
commit | ad6720a20bc9abb728630b96fc811e7293e7a307 (patch) | |
tree | f68c9cc71c2efc08bf3ffa7d70bc213b02a1cb47 /src/main | |
parent | 8e1b787a3a65bf05d820d27ca41b21476f21f496 (diff) | |
download | traccar-server-ad6720a20bc9abb728630b96fc811e7293e7a307.tar.gz traccar-server-ad6720a20bc9abb728630b96fc811e7293e7a307.tar.bz2 traccar-server-ad6720a20bc9abb728630b96fc811e7293e7a307.zip |
Set location as valid
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
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)) { |