mirror of https://github.com/arendst/Tasmota.git
AP MODE: Added Restore Config Button
This commit is contained in:
parent
15acf8487d
commit
aa155f9a52
|
@ -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);
|
||||
if (WifiIsInManagerMode()) {
|
||||
WSContentSpaceButton(BUTTON_MAIN);
|
||||
} else {
|
||||
WSContentSpaceButton(BUTTON_CONFIGURATION);
|
||||
}
|
||||
WSContentStop();
|
||||
|
||||
Web.upload_error = 0;
|
||||
|
|
Loading…
Reference in New Issue