|
|
@@ -84,6 +84,8 @@ void task_do_Update_ZIP(void *pvParameter)
|
|
|
out = "/sdcard/html";
|
|
|
outbin = "/sdcard/firmware";
|
|
|
|
|
|
+ delete_all_in_directory(out);
|
|
|
+
|
|
|
retfirmware = unzip_new(_file_name_update, out+"/", outbin+"/", "/sdcard/", initial_setup);
|
|
|
LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Files unzipped.");
|
|
|
|
|
|
@@ -434,7 +436,6 @@ esp_err_t handler_ota_update(httpd_req_t *req)
|
|
|
return ESP_OK;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if ((filetype == "TFLITE") || (filetype == "TFL"))
|
|
|
{
|
|
|
std::string out = "/sdcard/config/" + getFileFullFileName(fn);
|