mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix safeboot naming
This commit is contained in:
parent
865ba51b7a
commit
8253f579f3
@ -842,7 +842,7 @@ void CmndUpgrade(void)
|
|||||||
else if (EspSingleOtaPartition() && !EspRunningFactoryPartition() && (1 == XdrvMailbox.data_len) && (2 == XdrvMailbox.payload)) {
|
else if (EspSingleOtaPartition() && !EspRunningFactoryPartition() && (1 == XdrvMailbox.data_len) && (2 == XdrvMailbox.payload)) {
|
||||||
TasmotaGlobal.ota_factory = true;
|
TasmotaGlobal.ota_factory = true;
|
||||||
TasmotaGlobal.ota_state_flag = 3;
|
TasmotaGlobal.ota_state_flag = 3;
|
||||||
ResponseCmndChar(PSTR("Saveboot"));
|
ResponseCmndChar(PSTR("Safeboot"));
|
||||||
}
|
}
|
||||||
#endif // ESP32 and WEBCLIENT_HTTPS
|
#endif // ESP32 and WEBCLIENT_HTTPS
|
||||||
else {
|
else {
|
||||||
|
@ -1260,7 +1260,7 @@ void Every250mSeconds(void)
|
|||||||
char *pch = strrchr(bch, '-'); // Find last dash (-) and ignore remainder - handles tasmota-DE
|
char *pch = strrchr(bch, '-'); // Find last dash (-) and ignore remainder - handles tasmota-DE
|
||||||
if (pch == nullptr) { pch = ech; } // No dash so ignore filetype
|
if (pch == nullptr) { pch = ech; } // No dash so ignore filetype
|
||||||
*pch = '\0'; // full_ota_url = http://domus1:80/api/arduino/tasmota
|
*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
|
} else
|
||||||
#endif // USE_WEBCLIENT_HTTPS
|
#endif // USE_WEBCLIENT_HTTPS
|
||||||
if (EspSingleOtaPartition()) {
|
if (EspSingleOtaPartition()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user