Fix safeboot naming

This commit is contained in:
Theo Arends 2022-05-11 14:45:09 +02:00
parent 865ba51b7a
commit 8253f579f3
2 changed files with 2 additions and 2 deletions

View File

@ -842,7 +842,7 @@ void CmndUpgrade(void)
else if (EspSingleOtaPartition() && !EspRunningFactoryPartition() && (1 == XdrvMailbox.data_len) && (2 == XdrvMailbox.payload)) {
TasmotaGlobal.ota_factory = true;
TasmotaGlobal.ota_state_flag = 3;
ResponseCmndChar(PSTR("Saveboot"));
ResponseCmndChar(PSTR("Safeboot"));
}
#endif // ESP32 and WEBCLIENT_HTTPS
else {

View File

@ -1260,7 +1260,7 @@ void Every250mSeconds(void)
char *pch = strrchr(bch, '-'); // Find last dash (-) and ignore remainder - handles tasmota-DE
if (pch == nullptr) { pch = ech; } // No dash so ignore filetype
*pch = '\0'; // full_ota_url = http://domus1:80/api/arduino/tasmota
snprintf_P(full_ota_url, sizeof(full_ota_url), PSTR("%s-safeboot%s"), full_ota_url, ota_url_type); // Saveboot filename must be filename-safeboot
snprintf_P(full_ota_url, sizeof(full_ota_url), PSTR("%s-safeboot%s"), full_ota_url, ota_url_type); // Safeboot filename must be filename-safeboot
} else
#endif // USE_WEBCLIENT_HTTPS
if (EspSingleOtaPartition()) {