Skip to content

Commit

Permalink
Prevent illegal moves caused by previous move flags not being reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
modmaker committed Jun 16, 2013
1 parent 1e39929 commit f7152cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcode_parse.c
Expand Up @@ -355,6 +355,8 @@ void gcode_parse_char(uint8_t c) {
next_target.command_text = gcode_text;
process_gcode_command( &next_target);
gcode_text_index = 0;
next_target.seen_G = 0;
next_target.seen_M = 0;
serial_writechar('\n');

// expect next line number
Expand Down

0 comments on commit f7152cb

Please sign in to comment.