Merge pull request #3276 from thinkyhead/rc_sdprint_and_lcd_sleuth

Refinements, fixes, reduced stack usage in CardReader
This commit is contained in:
Scott Lahteine
2016-03-29 18:30:18 -07:00
4 changed files with 26 additions and 35 deletions

View File

@@ -3704,7 +3704,7 @@ inline void gcode_M31() {
bool call_procedure = code_seen('P') && (seen_pointer < namestartpos);
if (card.cardOK) {
card.openFile(namestartpos, true, !call_procedure);
card.openFile(namestartpos, true, call_procedure);
if (code_seen('S') && seen_pointer < namestartpos) // "S" (must occur _before_ the filename!)
card.setIndex(code_value_short());