#580 fix to initial wireless modem DOWN message

This commit is contained in:
Mikayla Fischler
2025-11-08 18:18:29 -05:00
parent 6dea501946
commit 3f1cf217ac
4 changed files with 6 additions and 4 deletions

View File

@@ -179,12 +179,13 @@ function backplane.init(config, __shared_memory)
local modem, iface = ppm.get_wireless_modem()
local wl_nic = network.nic(modem)
log.info("BKPLN: WIRELESS PHY_" .. util.trinary(modem, "UP ", "DOWN ") .. iface)
log.info("BKPLN: WIRELESS PHY_" .. util.trinary(modem, "UP ", "DOWN") .. (iface or ""))
log_comms("wireless comms modem " .. util.trinary(modem, "connected", "not found"))
-- set this as active if connected or if both modems are disconnected and this is preferred
if (modem and _bp.wlan_pref) or not (_bp.act_nic and _bp.act_nic.is_connected()) then
_bp.act_nic = wl_nic
log.info("BKPLN: switched active to preferred wireless")
end
_bp.wl_nic = wl_nic