Skip to content

Commit b64377b

Browse files
committed
Fix a crash during file check when CMDBUFFER_DEBUG is defined
The file check is so slow that we need to kick the watchdog to prevent a "crash"
1 parent e3f48ea commit b64377b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Firmware/ultralcd.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -7784,6 +7784,11 @@ static bool check_file(const char* filename) {
77847784
card.sdprinting = true;
77857785
get_command();
77867786
result = check_commands();
7787+
#ifdef CMDBUFFER_DEBUG
7788+
// Kick watchdog because the file check is very slow
7789+
// with the CMDBUFFER_DEBUG enabled
7790+
manage_heater();
7791+
#endif // CMDBUFFER_DEBUG
77877792
}
77887793

77897794
menu_progressbar_finish();

0 commit comments

Comments
 (0)