mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
fix callback order
This commit is contained in:
+5
-5
@@ -304,6 +304,11 @@ bool WiFiManager::startAP(){
|
||||
bool ret = true;
|
||||
DEBUG_WM(F("StartAP with SSID: "),_apName);
|
||||
|
||||
// do AP callback if set
|
||||
if ( _apcallback != NULL) {
|
||||
_apcallback(this);
|
||||
}
|
||||
|
||||
// setup optional soft AP static ip config
|
||||
if (_ap_static_ip) {
|
||||
DEBUG_WM(F("Custom AP IP/GW/Subnet:"));
|
||||
@@ -347,11 +352,6 @@ bool WiFiManager::startAP(){
|
||||
}
|
||||
#endif
|
||||
|
||||
// do AP callback if set
|
||||
if ( _apcallback != NULL) {
|
||||
_apcallback(this);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user