Kaynağa Gözat

Merge pull request #3527 from gudnimg/fix-cmdbuffer-debug-crash

Fix a crash during file check when `CMDBUFFER_DEBUG` is defined
Alex Voinea 1 yıl önce
ebeveyn
işleme
fd702c8a21
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      Firmware/ultralcd.cpp

+ 5 - 0
Firmware/ultralcd.cpp

@@ -7789,6 +7789,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();