From 55d915e91897a6d38dbdb91ae6618f6f7d4e0820 Mon Sep 17 00:00:00 2001 From: Mark Webb-Johnson Date: Thu, 21 Jun 2018 14:11:37 +0800 Subject: [PATCH] esp_ota_begin flash erase: OVMS kludge to give other tasks a chance --- components/spi_flash/flash_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/spi_flash/flash_ops.c b/components/spi_flash/flash_ops.c index aab0c1210..af56fe474 100644 --- a/components/spi_flash/flash_ops.c +++ b/components/spi_flash/flash_ops.c @@ -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);