stuff
All checks were successful
Compilie project and upload binaries / test (push) Successful in 3m59s
All checks were successful
Compilie project and upload binaries / test (push) Successful in 3m59s
This commit is contained in:
@@ -43,7 +43,7 @@ lib_deps =
|
|||||||
${env:esp32_base.lib_deps}
|
${env:esp32_base.lib_deps}
|
||||||
robtillaart/INA226@ ~0.6.4
|
robtillaart/INA226@ ~0.6.4
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_port = 192.168.6.45
|
upload_port = 192.168.6.46
|
||||||
build_flags = ${env:esp32_base.build_flags} -DUSE_INA226
|
build_flags = ${env:esp32_base.build_flags} -DUSE_INA226
|
||||||
|
|
||||||
[env:native]
|
[env:native]
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ void setup_api_endpoints(){
|
|||||||
.ota_status = ota_status
|
.ota_status = ota_status
|
||||||
};
|
};
|
||||||
|
|
||||||
xTaskCreate(run_ota_update_task, "RunOTAUpdate", 1024 * 8, (void *)&args, 1, NULL);
|
xTaskCreate(run_ota_update_task, "RunOTAUpdate", 1024 * 12, (void *)&args, 1, NULL);
|
||||||
request->send(LittleFS, "/update_progress.html", "text/html", false, processor);
|
request->send(LittleFS, "/update_progress.html", "text/html", false, processor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -66,7 +66,7 @@ void update_progress(int cur, int total) {
|
|||||||
|
|
||||||
void update_error(int err) {
|
void update_error(int err) {
|
||||||
LOG(ELOG_LEVEL_ERROR, "OTA Update error: %d", err);
|
LOG(ELOG_LEVEL_ERROR, "OTA Update error: %d", err);
|
||||||
ota_status.update_progress = -2;
|
ota_status.update_progress = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_update_task(void* parameter) {
|
void check_update_task(void* parameter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user