Explorar o código

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

Robert Pelnar %!s(int64=5) %!d(string=hai) anos
pai
achega
16e5fb50dd
Modificáronse 1 ficheiros con 1 adicións e 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;