Skip to content

Commit

Permalink
Prevent removing SD card while printing from host causing return to m…
Browse files Browse the repository at this point in the history
…ain menu . Fixes MarlinFirmware#49.
  • Loading branch information
Sebazzz committed Dec 10, 2020
1 parent 9d58b92 commit 41c3d5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/lcd/extui/lib/dgus_creality/DGUSScreenHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ void DGUSScreenHandler::DGUSLCD_SendHeaterStatusToDisplay(DGUS_VP_Variable &var)
}

void DGUSScreenHandler::SDCardRemoved() {
if (!IS_SD_PRINTING()) {
return;
}

if (current_screen == DGUSLCD_SCREEN_SDFILELIST
|| (current_screen == DGUSLCD_SCREEN_CONFIRM && (ConfirmVP == VP_SD_AbortPrintConfirmed || ConfirmVP == VP_SD_FileSelectConfirm))
|| current_screen == DGUSLCD_SCREEN_SDPRINTMANIPULATION
Expand Down

0 comments on commit 41c3d5d

Please sign in to comment.