Rework DTD blocking detection

This commit is contained in:
Tim Wilkinson 2023-01-14 20:44:55 -08:00 committed by Joe AE6XE
parent e0498ca856
commit b26017c2d1
1 changed files with 1 additions and 2 deletions

View File

@ -647,12 +647,11 @@ function lqm()
if track.type == "RF" then
-- If we have a direct dtd connection to this device, make sure we use that
track.blocks.dtd = false
for _, dtd in pairs(tracker) do
if dtd.type == "DtD" and dtd.hostname == track.hostname then
if dtd.distance and dtd.distance < dtd_distance then
track.blocks.dtd = true
else
track.blocks.dtd = false
end
break
end