(Hack) Restart ESP when klipper calls start failing

This commit is contained in:
suchmememanyskill
2024-02-15 18:32:36 +01:00
parent 3dc241dbec
commit 4fc2316970

View File

@@ -227,10 +227,13 @@ void ip_init(){
void ip_ok(){
if (klipper_request_consecutive_fail_count > 5){
ESP.restart();
/* The below code doesn't work, fix later
freeze_request_thread();
ip_init();
unfreeze_request_thread();
klipper_request_consecutive_fail_count = 0;
lv_msg_send(DATA_PRINTER_STATE, &printer);
*/
}
}