esp_ota_begin flash erase: OVMS kludge to give other tasks a chance
This commit is contained in:
parent
1a1a544afa
commit
55d915e918
|
@ -228,6 +228,7 @@ esp_err_t IRAM_ATTR spi_flash_erase_range(uint32_t start_addr, uint32_t size)
|
||||||
COUNTER_ADD_BYTES(erase, SPI_FLASH_SEC_SIZE);
|
COUNTER_ADD_BYTES(erase, SPI_FLASH_SEC_SIZE);
|
||||||
}
|
}
|
||||||
spi_flash_guard_end();
|
spi_flash_guard_end();
|
||||||
|
vTaskDelay(1); // OVMS kludge to give other tasks a chance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
COUNTER_STOP(erase);
|
COUNTER_STOP(erase);
|
||||||
|
|
Loading…
Reference in a new issue