Skip to content

Commit

Permalink
fix callback order
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix authored and tablatronix committed Aug 10, 2018
1 parent 4cceb95 commit 5ee1ae7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:"));
Expand Down Expand Up @@ -347,11 +352,6 @@ bool WiFiManager::startAP(){
}
#endif

// do AP callback if set
if ( _apcallback != NULL) {
_apcallback(this);
}

return ret;
}

Expand Down

0 comments on commit 5ee1ae7

Please sign in to comment.