Stop print when SDcard is removed while printing.

This commit is contained in:
3d-gussner 2024-04-15 10:50:00 +02:00
parent 52ac95f082
commit 66a1d76f92
1 changed files with 3 additions and 0 deletions

View File

@ -7417,6 +7417,9 @@ void menu_lcd_lcdupdate_func(void)
}
else
{
if(GetPrinterState() == PrinterState::IsSDPrinting) {
lcd_print_stop();
}
card.release();
LCD_MESSAGERPGM(_T(MSG_SD_REMOVED));
}