|
|
@@ -349,11 +349,11 @@ esp_err_t handler_ota_update(httpd_req_t *req)
|
|
|
std::string in, out, zw;
|
|
|
|
|
|
in = "/sdcard/firmware/html.zip";
|
|
|
- out = "/sdcard/html/";
|
|
|
+ out = "/sdcard/html";
|
|
|
|
|
|
delete_all_in_directory(out);
|
|
|
|
|
|
- unzip(in, out);
|
|
|
+ unzip(in, out+"/");
|
|
|
zw = "HTML Update Successfull!<br><br>No reboot necessary";
|
|
|
httpd_resp_sendstr_chunk(req, zw.c_str());
|
|
|
httpd_resp_sendstr_chunk(req, NULL);
|