mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 17:30:37 +01:00
Fix: When enabling admin mode, the search for the STA was automatically disabled
This commit is contained in:
@@ -194,6 +194,12 @@ void NetworkSettingsClass::setupMode()
|
||||
|
||||
void NetworkSettingsClass::enableAdminMode()
|
||||
{
|
||||
// This prevents a immediate "Disabling search for AP" when
|
||||
// the network connection persists for a long time and the
|
||||
// credentials gets changed.
|
||||
_connectTimeoutTimer = 0;
|
||||
_connectRedoTimer = 0;
|
||||
|
||||
_adminTimeoutCounter = 0;
|
||||
_adminTimeoutCounterMax = Configuration.get().WiFi.ApTimeout * 60;
|
||||
_adminEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user