esp_ota_begin flash erase: OVMS kludge to give other tasks a chance
This commit is contained in:
parent
1a1a544afa
commit
55d915e918
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
spi_flash_guard_end();
|
||||
vTaskDelay(1); // OVMS kludge to give other tasks a chance
|
||||
}
|
||||
}
|
||||
COUNTER_STOP(erase);
|
||||
|
|
Loading…
Reference in a new issue