浏览代码

Remove M601 from queue before saving state (prevent infinite loop - PFW713)

Robert Pelnar 5 年之前
父节点
当前提交
16e5fb50dd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Firmware/Marlin_main.cpp

+ 1 - 0
Firmware/Marlin_main.cpp

@@ -6518,6 +6518,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE))
     #endif //FILAMENTCHANGEENABLE
 	case 601: //! M601 - Pause print
 	{
+		cmdqueue_pop_front(); //trick because we want skip this command (M601) after restore
 		lcd_pause_print();
 	}
 	break;