Turn LQM off when not enabled!! (#369)

This commit is contained in:
Tim Wilkinson 2022-05-23 05:44:37 -07:00 committed by GitHub
parent b680d2019e
commit 988c7f251b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ local wlan = get_ifname("wifi")
function lqm()
if cursor:get("aredn", "@lqm[0]", "enable") ~= "1" then
exit_app()
return
end
-- Let things startup for a while before we begin
wait_for_ticks(math.max(1, 30 - nixio.sysinfo().uptime))