forked from xiaozhi/xiaozhi-esp32
v1.6.8: Move partition CSV files into a folder
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user