AP MODE: Added Restore Config Button

This commit is contained in:
Adrian Scillato 2019-12-25 21:59:42 -03:00 committed by GitHub
parent 15acf8487d
commit aa155f9a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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;