浏览代码

Ignore M22 during SD print

Scott Lahteine 3 年前
父节点
当前提交
e8aa6ab735
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      Marlin/src/gcode/sd/M21_M22.cpp

+ 5
- 1
Marlin/src/gcode/sd/M21_M22.cpp 查看文件

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

正在加载...
取消
保存