Skip to content

Commit

Permalink
Allow non-consecutive line numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Traumflug committed Jul 13, 2010
1 parent ff25c68 commit 877ffce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mendel/gcode.c
Expand Up @@ -298,7 +298,7 @@ void scan_char(uint8_t c) {
if (next_target.seen_G || next_target.seen_M) {
if (
#ifdef REQUIRE_LINENUMBER
((next_target.N_expected == next_target.N) && (next_target.seen_N == 1))
((next_target.N >= next_target.N_expected) && (next_target.seen_N == 1))
#else
1
#endif
Expand All @@ -315,7 +315,7 @@ void scan_char(uint8_t c) {
serial_writestr_P(PSTR("ok\n"));

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

0 comments on commit 877ffce

Please sign in to comment.