mirror of https://github.com/arendst/Tasmota.git
Merge pull request #7329 from ascillato/patch-3
AP MODE: Add Restore Config Button
This commit is contained in:
commit
12ef762162
|
@ -1693,10 +1693,11 @@ void HandleWifiConfiguration(void)
|
|||
}
|
||||
|
||||
if (WifiIsInManagerMode()) {
|
||||
WSContentSpaceButton(BUTTON_RESTART);
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
WSContentSpaceButton(BUTTON_RESET_CONFIGURATION);
|
||||
WSContentSpaceButton(BUTTON_RESTORE);
|
||||
WSContentButton(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;
|
||||
|
|
Loading…
Reference in New Issue