0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-30 21:58:06 +00:00

Ignore M22 during SD print

This commit is contained in:
Scott Lahteine 2021-01-12 22:32:12 -06:00 committed by Scott Lahteine
parent 726e2e9bc0
commit 62d20c8b37

View file

@ -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