Fix monitors not detecting non-mesh mode (#716)

This commit is contained in:
Tim Wilkinson 2023-02-17 21:02:21 -08:00 committed by GitHub
parent 741becfefa
commit 61fa802f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ local wifiiface
local last_scan_time = 0
function rssi_monitor_10k()
if string.match(get_ifname("wifi"), "^eth.") then
if not string.match(get_ifname("wifi"), "^wlan") then
exit_app()
else
wait_for_ticks(math.max(1, 120 - nixio.sysinfo().uptime))

View File

@ -39,7 +39,7 @@ local phy
local multiple_ant = false
function rssi_monitor_9k()
if string.match(get_ifname("wifi"), "^eth.") then
if not string.match(get_ifname("wifi"), "^wlan") then
exit_app()
else
wait_for_ticks(math.max(1, 120 - nixio.sysinfo().uptime))