Improve meshref conflict check which could be triggered even when no wifi is enabled (#599)

This commit is contained in:
Tim Wilkinson 2022-12-27 18:06:30 -08:00 committed by GitHub
parent 47d8a5bb29
commit 9293de42a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ if parms.button_save then
if phycount > 1 and wifi_enable == "1" and wifi2_channel < 36 and wifi2_enable == "1" then if phycount > 1 and wifi_enable == "1" and wifi2_channel < 36 and wifi2_enable == "1" then
err("Mesh RF and LAN Access Point can not both use the same wireless card, review LAN AP settings") err("Mesh RF and LAN Access Point can not both use the same wireless card, review LAN AP settings")
end end
if phycount > 1 and wifi_enable == "0" and wifi2_hwmode == wifi3_hwmode then if phycount > 1 and wifi_enable == "0" and wifi2_enable == "1" and wifi3_enable == "1" and wifi2_hwmode == wifi3_hwmode then
err("Some settings auto updated to avoid conflicts, please review and save one more time") err("Some settings auto updated to avoid conflicts, please review and save one more time")
end end
if wifi_enable == "1" and wifi2_enable == "1" and wifi3_enable == "1" then if wifi_enable == "1" and wifi2_enable == "1" and wifi3_enable == "1" then