Skip to content

Commit

Permalink
Ignore M22 during SD print
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 14, 2021
1 parent 6596a50 commit 5ee1087
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Marlin/src/gcode/sd/M21_M22.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ void GcodeSuite::M21() { card.mount(); }
/**
* M22: Release SD Card
*/
void GcodeSuite::M22() { card.release(); }
void GcodeSuite::M22() {

if (!IS_SD_PRINTING()) card.release();

}

#endif // SDSUPPORT

0 comments on commit 5ee1087

Please sign in to comment.