fix callback order

This commit is contained in:
tablatronix
2018-08-10 11:45:25 -05:00
parent 4cceb95a42
commit 5ee1ae78c0
+5 -5
View File
@@ -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;
}