Patch M23 to work around Simplify3D bug

Addressing #7227
This commit is contained in:
Scott Lahteine 2017-07-06 14:00:58 -05:00
parent ef94ddf53c
commit 678914be25

View File

@ -6256,7 +6256,11 @@ inline void gcode_M17() {
/**
* M23: Open a file
*/
inline void gcode_M23() { card.openFile(parser.string_arg, true); }
inline void gcode_M23() {
// Simplify3D includes the size, so zero out all spaces (#7227)
for (char *fn = parser.string_arg; *fn; ++fn) if (*fn == ' ') *fn = '\0';
card.openFile(parser.string_arg, true);
}
/**
* M24: Start or Resume SD Print