Browse Source

Ignore M22 during SD print

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
committed by Scott Lahteine
parent
commit
62d20c8b37
  1. 6
      Marlin/src/gcode/sd/M21_M22.cpp

6
Marlin/src/gcode/sd/M21_M22.cpp

@ -35,6 +35,10 @@ void GcodeSuite::M21() { card.mount(); }
/** /**
* M22: Release SD Card * M22: Release SD Card
*/ */
void GcodeSuite::M22() { card.release(); } void GcodeSuite::M22() {
if (!IS_SD_PRINTING()) card.release();
}
#endif // SDSUPPORT #endif // SDSUPPORT

Loading…
Cancel
Save