DtD links have to be close by

This commit is contained in:
Tim Wilkinson 2022-06-13 22:08:03 -07:00 committed by Joe AE6XE
parent 28f25cf951
commit 6b1ec622aa
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ function lqm()
-- If we have a direct dtd connection to this device, make sure we use that
local a, b, c = track.mac:match("^(..:..:..:)(..)(:..:..)$")
local dtd = tracker[string.format("%s%02X%s", a, tonumber(b, 16) + 1, c)]
if dtd and dtd.type == "DtD" then
if dtd and dtd.type == "DtD" and track.distance < dtd_distance then
track.blocks.dtd = true
else
track.blocks.dtd = false