Skip to content

Commit

Permalink
Count only line numbers with N seen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Traumflug committed Jul 13, 2010
1 parent 877ffce commit a83f301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mendel/gcode.c
Expand Up @@ -315,7 +315,8 @@ void scan_char(uint8_t c) {
serial_writestr_P(PSTR("ok\n"));

// expect next line number
next_target.N_expected = next_target.N + 1;
if (next_target.seen_N == 1)
next_target.N_expected = next_target.N + 1;
}
else {
serial_writestr_P(PSTR("RESEND: BAD CHECKSUM: EXPECTED "));
Expand Down

0 comments on commit a83f301

Please sign in to comment.