mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-18 08:51:43 +10:00
move apcallback to proper location
This was actually being called before the ap was setup!
This commit is contained in:
+6
-5
@@ -114,6 +114,12 @@ bool WiFiManager::startAP(){
|
||||
delay(500); // slight delay to make sure we have an AP IP
|
||||
DEBUG_WM(F("AP IP address: "));
|
||||
DEBUG_WM(WiFi.softAPIP());
|
||||
|
||||
// do AP callback if set
|
||||
if ( _apcallback != NULL) {
|
||||
_apcallback(this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -195,11 +201,6 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
|
||||
_apPassword = apPassword;
|
||||
if(!validApPassword()) return false;
|
||||
|
||||
// do AP callback if set
|
||||
if ( _apcallback != NULL) {
|
||||
_apcallback(this);
|
||||
}
|
||||
|
||||
connect = false; // global
|
||||
|
||||
// init configportal
|
||||
|
||||
Reference in New Issue
Block a user