소스 검색

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

Loading…
취소
저장