From bdb46624f090d9c1b0c1e30cb4504e224162d344 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Mon, 13 Jun 2022 22:12:36 -0700 Subject: [PATCH] DtD links have to be close by --- files/usr/local/bin/mgr/lqm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/usr/local/bin/mgr/lqm.lua b/files/usr/local/bin/mgr/lqm.lua index 267f3c27..9c9e0c70 100755 --- a/files/usr/local/bin/mgr/lqm.lua +++ b/files/usr/local/bin/mgr/lqm.lua @@ -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" and track.distance < dtd_distance then + if dtd and dtd.type == "DtD" and dtd.distance < dtd_distance then track.blocks.dtd = true else track.blocks.dtd = false