@@ -60,7 +60,7 @@ extern "C" {
60
60
#elif CONFIG_IDF_TARGET_ESP32H2
61
61
#include " esp32h2/rom/spi_flash.h"
62
62
#define ESP_FLASH_IMAGE_BASE 0x0000 // Esp32h2 is located at 0x0000
63
- #else
63
+ #else
64
64
#error Target CONFIG_IDF_TARGET is not supported
65
65
#endif
66
66
#else // ESP32 Before IDF 4.0
@@ -249,7 +249,9 @@ String EspClass::getSketchMD5()
249
249
lengthLeft -= readBytes;
250
250
offset += readBytes;
251
251
252
+ #if CONFIG_FREERTOS_UNICORE
252
253
delay (1 ); // Fix solo WDT
254
+ #endif
253
255
}
254
256
free (pb);
255
257
md5.calculate ();
@@ -525,17 +527,17 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
525
527
return esp_flash_read (esp_flash_default_chip, (void *) data, offset, size) == ESP_OK;
526
528
}
527
529
528
- bool EspClass::partitionEraseRange (const esp_partition_t *partition, uint32_t offset, size_t size)
530
+ bool EspClass::partitionEraseRange (const esp_partition_t *partition, uint32_t offset, size_t size)
529
531
{
530
532
return esp_partition_erase_range (partition, offset, size) == ESP_OK;
531
533
}
532
534
533
- bool EspClass::partitionWrite (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
535
+ bool EspClass::partitionWrite (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
534
536
{
535
537
return esp_partition_write (partition, offset, data, size) == ESP_OK;
536
538
}
537
539
538
- bool EspClass::partitionRead (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
540
+ bool EspClass::partitionRead (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
539
541
{
540
542
return esp_partition_read (partition, offset, data, size) == ESP_OK;
541
543
}
0 commit comments