1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Require a checksum when writing to SD

From #10204 by @adriancuzman
This commit is contained in:
Scott Lahteine 2018-03-28 13:45:47 -05:00
parent 9656a82609
commit 3007eee22e

View File

@ -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()) {