Fix config upload message safeboot regression

This commit is contained in:
Theo Arends 2022-06-08 11:54:11 +02:00
parent 2a197fcf9c
commit ac4ed0d664
1 changed files with 0 additions and 8 deletions

View File

@ -2308,15 +2308,7 @@ void HandleRestoreConfiguration(void)
WSContentStart_P(PSTR(D_RESTORE_CONFIGURATION));
WSContentSendStyle();
WSContentSend_P(HTTP_FORM_RST);
#ifdef ESP32
if (EspSingleOtaPartition() && !EspRunningFactoryPartition()) {
WSContentSend_P(HTTP_FORM_RST_UPG_FCT, PSTR(D_RESTORE));
} else {
WSContentSend_P(HTTP_FORM_RST_UPG, PSTR(D_RESTORE));
}
#else
WSContentSend_P(HTTP_FORM_RST_UPG, PSTR(D_RESTORE));
#endif
if (WifiIsInManagerMode()) {
WSContentSpaceButton(BUTTON_MAIN);
} else {