Browse Source

Ignore M22 during SD print

Scott Lahteine 3 years ago
parent
commit
e8aa6ab735
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/gcode/sd/M21_M22.cpp

+ 5
- 1
Marlin/src/gcode/sd/M21_M22.cpp View File

@@ -35,6 +35,10 @@ void GcodeSuite::M21() { card.mount(); }
35 35
 /**
36 36
  * M22: Release SD Card
37 37
  */
38
-void GcodeSuite::M22() { card.release(); }
38
+void GcodeSuite::M22() {
39
+
40
+  if (!IS_SD_PRINTING()) card.release();
41
+
42
+}
39 43
 
40 44
 #endif // SDSUPPORT

Loading…
Cancel
Save