Sfoglia il codice sorgente

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

Robert Pelnar 5 anni fa
parent
commit
16e5fb50dd
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;