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