mirror of https://github.com/aredn/aredn.git
DtD links have to be close by
This commit is contained in:
parent
28f25cf951
commit
6b1ec622aa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue