mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
add check to dissallow starting cp if already running
This will avoid support inquiries and add a log
This commit is contained in:
@@ -657,6 +657,13 @@ boolean WiFiManager::startConfigPortal() {
|
||||
boolean WiFiManager::startConfigPortal(char const *apName, char const *apPassword) {
|
||||
_begin();
|
||||
|
||||
if(configPortalActive){
|
||||
#ifdef WM_DEBUG_LEVEL
|
||||
DEBUG_WM(DEBUG_VERBOSE,F("Starting Config Portal FAILED, is already running"));
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
//setup AP
|
||||
_apName = apName; // @todo check valid apname ?
|
||||
_apPassword = apPassword;
|
||||
|
||||
Reference in New Issue
Block a user