v1.6.8: Move partition CSV files into a folder

This commit is contained in:
Terrence
2025-06-04 12:11:41 +08:00
parent 16ec95f6d5
commit f41210577b
41 changed files with 53 additions and 44 deletions

View File

@@ -270,6 +270,11 @@ void Ota::Upgrade(const std::string& firmware_url) {
return;
}
if (http->GetStatusCode() != 200) {
ESP_LOGE(TAG, "Failed to get firmware, status code: %d", http->GetStatusCode());
return;
}
size_t content_length = http->GetBodyLength();
if (content_length == 0) {
ESP_LOGE(TAG, "Failed to get content length");