Skip to content

Commit 9513917

Browse files
authored
Merge branch 'master' into fix/uart_dettach_end
2 parents 520cd35 + cd44ed4 commit 9513917

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ bool updateEspHostedSlave() {
143143
// Step 15: Clean up allocated buffer
144144
free(buff);
145145
Serial.println();
146+
} else if (httpCode == HTTP_CODE_NOT_FOUND) {
147+
Serial.println("ERROR: Update file not found!");
148+
} else {
149+
Serial.printf("ERROR: HTTP request failed with code %d!", httpCode);
146150
}
147151

148152
// Step 16: Close HTTP connection

libraries/LittleFS/src/LittleFS.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ void LittleFSFS::end() {
9696
}
9797

9898
bool LittleFSFS::format() {
99+
esp_log_level_set("*", ESP_LOG_NONE);
99100
bool wdt_active = disableCore0WDT();
100101
esp_err_t err = esp_littlefs_format(partitionLabel_);
101102
if (wdt_active) {
102103
enableCore0WDT();
103104
}
105+
esp_log_level_set("*", (esp_log_level_t)CONFIG_LOG_DEFAULT_LEVEL);
104106
if (err) {
105107
log_e("Formatting LittleFS failed! Error: %d", err);
106108
return false;

0 commit comments

Comments
 (0)