Merge pull request #3713 from thinkyhead/rc_file_offset_long

Use code_value_long for potentially large values
master
Scott Lahteine 9 years ago
commit be5d17de17

@ -3797,7 +3797,7 @@ inline void gcode_M17() {
*/ */
inline void gcode_M26() { inline void gcode_M26() {
if (card.cardOK && code_seen('S')) if (card.cardOK && code_seen('S'))
card.setIndex(code_value_short()); card.setIndex(code_value_long());
} }
/** /**
@ -3869,7 +3869,7 @@ inline void gcode_M31() {
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!) if (code_seen('S') && seen_pointer < namestartpos) // "S" (must occur _before_ the filename!)
card.setIndex(code_value_short()); card.setIndex(code_value_long());
card.startFileprint(); card.startFileprint();

Loading…
Cancel
Save