瀏覽代碼

Merge pull request #1356 from PavelSindler/MK3_for_merging

process serial line during pause
PavelSindler 6 年之前
父節點
當前提交
c1773c1aa4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Firmware/cmdqueue.cpp

+ 1 - 1
Firmware/cmdqueue.cpp

@@ -382,7 +382,7 @@ void get_command()
 	}
 
   // start of serial line processing loop
-  while (MYSERIAL.available() > 0 && !saved_printing) {  //is print is saved (crash detection or filament detection), dont process data from serial line
+  while ((MYSERIAL.available() > 0 && !saved_printing) || (MYSERIAL.available() > 0 && isPrintPaused)) {  //is print is saved (crash detection or filament detection), dont process data from serial line
 	
     char serial_char = MYSERIAL.read();
 /*    if (selectedSerialPort == 1)