Explorar el Código

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

Robert Pelnar hace 5 años
padre
commit
16e5fb50dd
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;