Skip to content

Commit 19f1a8e

Browse files
committed
Fix commits
1 parent 15f5250 commit 19f1a8e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: cores/esp32/Esp.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static uint32_t sketchSize(sketchSize_t response) {
209209
return data.image_len;
210210
}
211211
}
212-
212+
213213
uint32_t EspClass::getSketchSize () {
214214
return sketchSize(SKETCH_SIZE_TOTAL);
215215
}
@@ -525,17 +525,17 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
525525
return esp_flash_read(esp_flash_default_chip, (void*) data, offset, size) == ESP_OK;
526526
}
527527

528-
bool EspClass::partitionEraseRange(const esp_partition_t *partition, uint32_t offset, size_t size)
528+
bool EspClass::partitionEraseRange(const esp_partition_t *partition, uint32_t offset, size_t size)
529529
{
530530
return esp_partition_erase_range(partition, offset, size) == ESP_OK;
531531
}
532532

533-
bool EspClass::partitionWrite(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
533+
bool EspClass::partitionWrite(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
534534
{
535535
return esp_partition_write(partition, offset, data, size) == ESP_OK;
536536
}
537537

538-
bool EspClass::partitionRead(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
538+
bool EspClass::partitionRead(const esp_partition_t *partition, uint32_t offset, uint32_t *data, size_t size)
539539
{
540540
return esp_partition_read(partition, offset, data, size) == ESP_OK;
541541
}

Diff for: libraries/HTTPUpdate/src/HTTPUpdate.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ HTTPUpdateResult HTTPUpdate::handleUpdate(HTTPClient& http, const String& curren
202202
if(sketchMD5.length() != 0) {
203203
http.addHeader("x-ESP32-sketch-md5", sketchMD5);
204204
}
205+
206+
delay(1); // Fix solo WDT
207+
205208
// Add also a SHA256
206209
String sketchSHA256 = getSketchSHA256();
207210
if(sketchSHA256.length() != 0) {

0 commit comments

Comments
 (0)