Skip to content

Commit

Permalink
(Hack) Restart ESP when klipper calls start failing
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Feb 15, 2024
1 parent 3dc241d commit 4fc2316
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CYD-Klipper/src/ui/ip_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
*/
}
}

0 comments on commit 4fc2316

Please sign in to comment.