From aa155f9a52a28421ecb17d9977034d663497ebca Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Wed, 25 Dec 2019 21:59:42 -0300 Subject: [PATCH] AP MODE: Added Restore Config Button --- tasmota/xdrv_01_webserver.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index d86562bb3..b9bad2812 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -1693,10 +1693,11 @@ void HandleWifiConfiguration(void) } if (WifiIsInManagerMode()) { - WSContentSpaceButton(BUTTON_RESTART); #ifndef FIRMWARE_MINIMAL + WSContentSpaceButton(BUTTON_RESTORE); WSContentSpaceButton(BUTTON_RESET_CONFIGURATION); #endif // FIRMWARE_MINIMAL + WSContentSpaceButton(BUTTON_RESTART); } else { WSContentSpaceButton(BUTTON_CONFIGURATION); } @@ -1970,7 +1971,11 @@ void HandleRestoreConfiguration(void) WSContentSendStyle(); WSContentSend_P(HTTP_FORM_RST); WSContentSend_P(HTTP_FORM_RST_UPG, D_RESTORE); - WSContentSpaceButton(BUTTON_CONFIGURATION); + if (WifiIsInManagerMode()) { + WSContentSpaceButton(BUTTON_MAIN); + } else { + WSContentSpaceButton(BUTTON_CONFIGURATION); + } WSContentStop(); Web.upload_error = 0;