소스 검색

Require a checksum when writing to SD

From #10204 by @adriancuzman
Scott Lahteine 7 년 전
부모
커밋
3007eee22e
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      Marlin/src/gcode/queue.cpp

+ 6
- 0
Marlin/src/gcode/queue.cpp 파일 보기

@@ -341,6 +341,12 @@ inline void get_serial_commands() {
341 341
 
342 342
           gcode_LastN = gcode_N;
343 343
         }
344
+        #if ENABLED(SDSUPPORT)
345
+          else if (card.saving) {
346
+            gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM));
347
+            return;
348
+          }
349
+        #endif
344 350
 
345 351
         // Movement commands alert when stopped
346 352
         if (IsStopped()) {

Loading…
취소
저장