mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
fix html-upload #959
This commit is contained in:
@@ -349,11 +349,11 @@ esp_err_t handler_ota_update(httpd_req_t *req)
|
|||||||
std::string in, out, zw;
|
std::string in, out, zw;
|
||||||
|
|
||||||
in = "/sdcard/firmware/html.zip";
|
in = "/sdcard/firmware/html.zip";
|
||||||
out = "/sdcard/html/";
|
out = "/sdcard/html";
|
||||||
|
|
||||||
delete_all_in_directory(out);
|
delete_all_in_directory(out);
|
||||||
|
|
||||||
unzip(in, out);
|
unzip(in, out+"/");
|
||||||
zw = "HTML Update Successfull!<br><br>No reboot necessary";
|
zw = "HTML Update Successfull!<br><br>No reboot necessary";
|
||||||
httpd_resp_sendstr_chunk(req, zw.c_str());
|
httpd_resp_sendstr_chunk(req, zw.c_str());
|
||||||
httpd_resp_sendstr_chunk(req, NULL);
|
httpd_resp_sendstr_chunk(req, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user