Add Propagating upload to ESP8266 minimal

This commit is contained in:
Theo Arends 2024-07-21 15:22:15 +02:00
parent e2fdf18625
commit 990a0e4257

View File

@ -1618,12 +1618,12 @@ void Every250mSeconds(void)
#ifdef ESP32 #ifdef ESP32
if (OtaFactoryRead()) { if (OtaFactoryRead()) {
OtaFactoryWrite(false); OtaFactoryWrite(false);
TasmotaGlobal.ota_state_flag = 3; RtcSettings.ota_loader = 1;
AddLog(LOG_LEVEL_DEBUG, PSTR("OTA: Propagating upload"));
} }
#endif #endif
if (1 == RtcSettings.ota_loader) { if (1 == RtcSettings.ota_loader) {
RtcSettings.ota_loader = 0; RtcSettings.ota_loader = 0;
AddLog(LOG_LEVEL_DEBUG, PSTR("OTA: Propagating upload"));
TasmotaGlobal.ota_state_flag = 3; TasmotaGlobal.ota_state_flag = 3;
} }
#endif // FIRMWARE_MINIMAL #endif // FIRMWARE_MINIMAL