mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix OTA auto gz selection
This commit is contained in:
parent
32231d8375
commit
ef39821b6d
@ -1092,7 +1092,7 @@ void Every250mSeconds(void)
|
||||
}
|
||||
#endif // FIRMWARE_MINIMAL
|
||||
if (ota_retry_counter < OTA_ATTEMPTS / 2) {
|
||||
if (!strcasecmp_P(TasmotaGlobal.mqtt_data, PSTR(".gz"))) {
|
||||
if (strstr_P(TasmotaGlobal.mqtt_data, PSTR(".gz"))) { // Might be made case insensitive...
|
||||
ota_retry_counter = 1;
|
||||
} else {
|
||||
strcat_P(TasmotaGlobal.mqtt_data, PSTR(".gz"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user