Canned G-code: fix reading flash memory.

This commit is contained in:
Markus Hitter 2014-08-30 14:12:12 +02:00
parent aed4bfdb5b
commit 1e97e51d2a
1 changed files with 2 additions and 2 deletions

View File

@ -287,10 +287,10 @@ int main (void)
If ever print-from-SD card is implemented, these changes may become
necessary.
*/
if (pgm_read_byte(canned_gcode_P[++canned_gcode_pos]) == 0)
if (pgm_read_byte(&(canned_gcode_P[++canned_gcode_pos])) == 0)
canned_gcode_pos = 0;
else
gcode_parse_char(pgm_read_byte(canned_gcode_P[canned_gcode_pos]));
gcode_parse_char(pgm_read_byte(&(canned_gcode_P[canned_gcode_pos])));
#endif /* CANNED_CYCLE */
}