Browse Source

Require a checksum when writing to SD

From #10204 by @adriancuzman
Scott Lahteine 6 years ago
parent
commit
3007eee22e
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/src/gcode/queue.cpp

+ 6
- 0
Marlin/src/gcode/queue.cpp View File

@@ -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…
Cancel
Save