Skip to content

Commit fd702c8

Browse files
authored
Merge pull request prusa3d#3527 from gudnimg/fix-cmdbuffer-debug-crash
Fix a crash during file check when `CMDBUFFER_DEBUG` is defined
2 parents d5fc2a2 + b64377b commit fd702c8

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
@@ -7789,6 +7789,11 @@ static bool check_file(const char* filename) {
77897789
card.sdprinting = true;
77907790
get_command();
77917791
result = check_commands();
7792+
#ifdef CMDBUFFER_DEBUG
7793+
// Kick watchdog because the file check is very slow
7794+
// with the CMDBUFFER_DEBUG enabled
7795+
manage_heater();
7796+
#endif // CMDBUFFER_DEBUG
77927797
}
77937798

77947799
menu_progressbar_finish();

0 commit comments

Comments
 (0)