@@ -42,7 +42,7 @@ extern "C" {
42
42
#elif CONFIG_IDF_TARGET_ESP32C3
43
43
#include " esp32c3/rom/spi_flash.h"
44
44
#define ESP_FLASH_IMAGE_BASE 0x0000 // Esp32c3 is located at 0x0000
45
- #else
45
+ #else
46
46
#error Target CONFIG_IDF_TARGET is not supported
47
47
#endif
48
48
#else // ESP32 Before IDF 4.0
@@ -187,7 +187,7 @@ static uint32_t sketchSize(sketchSize_t response) {
187
187
return data.image_len ;
188
188
}
189
189
}
190
-
190
+
191
191
uint32_t EspClass::getSketchSize () {
192
192
return sketchSize (SKETCH_SIZE_TOTAL);
193
193
}
@@ -226,6 +226,8 @@ String EspClass::getSketchMD5()
226
226
md5.add (buf.get (), readBytes);
227
227
lengthLeft -= readBytes;
228
228
offset += readBytes;
229
+
230
+ delay (1 ); // Fix solo WDT
229
231
}
230
232
md5.calculate ();
231
233
result = md5.toString ();
@@ -376,17 +378,17 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
376
378
return spi_flash_read (offset, (uint32_t *) data, size) == ESP_OK;
377
379
}
378
380
379
- bool EspClass::partitionEraseRange (const esp_partition_t *partition, uint32_t offset, size_t size)
381
+ bool EspClass::partitionEraseRange (const esp_partition_t *partition, uint32_t offset, size_t size)
380
382
{
381
383
return esp_partition_erase_range (partition, offset, size) == ESP_OK;
382
384
}
383
385
384
- bool EspClass::partitionWrite (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
386
+ bool EspClass::partitionWrite (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
385
387
{
386
388
return esp_partition_write (partition, offset, data, size) == ESP_OK;
387
389
}
388
390
389
- bool EspClass::partitionRead (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
391
+ bool EspClass::partitionRead (const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
390
392
{
391
393
return esp_partition_read (partition, offset, data, size) == ESP_OK;
392
394
}
0 commit comments