Merge pull request #4903 from DedeHai/ESPNOW_AP-mode_fix

remove early return from initconnection()
This commit is contained in:
Will Tatam 2025-12-13 21:40:38 +00:00 committed by GitHub
commit f9a8b3021f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -670,7 +670,6 @@ void WLED::initConnection()
if (!WLED_WIFI_CONFIGURED) { if (!WLED_WIFI_CONFIGURED) {
DEBUG_PRINTLN(F("No connection configured.")); DEBUG_PRINTLN(F("No connection configured."));
if (!apActive) initAP(); // instantly go to ap mode if (!apActive) initAP(); // instantly go to ap mode
return;
} else if (!apActive) { } else if (!apActive) {
if (apBehavior == AP_BEHAVIOR_ALWAYS) { if (apBehavior == AP_BEHAVIOR_ALWAYS) {
DEBUG_PRINTLN(F("Access point ALWAYS enabled.")); DEBUG_PRINTLN(F("Access point ALWAYS enabled."));