From 3007eee22e837ad45c25213dfba4f706f0327e4a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 28 Mar 2018 13:45:47 -0500 Subject: [PATCH] Require a checksum when writing to SD From #10204 by @adriancuzman --- Marlin/src/gcode/queue.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index 08ba22c43c..727b45ca39 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -341,6 +341,12 @@ inline void get_serial_commands() { gcode_LastN = gcode_N; } + #if ENABLED(SDSUPPORT) + else if (card.saving) { + gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM)); + return; + } + #endif // Movement commands alert when stopped if (IsStopped()) {