浏览代码

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"
Guðni Már Gilbert 2 年之前
父节点
当前提交
b64377b9de
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Firmware/ultralcd.cpp

+ 5 - 0
Firmware/ultralcd.cpp

@@ -7784,6 +7784,11 @@ static bool check_file(const char* filename) {
 		card.sdprinting = true;
 		get_command();
 		result = check_commands();
+#ifdef CMDBUFFER_DEBUG
+		// Kick watchdog because the file check is very slow
+		// with the CMDBUFFER_DEBUG enabled
+		manage_heater();
+#endif // CMDBUFFER_DEBUG
 	}
 	
 	menu_progressbar_finish();