Skip to content

Commit

Permalink
Patch M23 to work around Simplify3D bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 6, 2017
1 parent ef94ddf commit 678914b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 678914b

Please sign in to comment.