Allow non-consecutive line numbers.
This commit is contained in:
parent
ff25c6847b
commit
877ffce572
|
|
@ -298,7 +298,7 @@ void scan_char(uint8_t c) {
|
||||||
if (next_target.seen_G || next_target.seen_M) {
|
if (next_target.seen_G || next_target.seen_M) {
|
||||||
if (
|
if (
|
||||||
#ifdef REQUIRE_LINENUMBER
|
#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
|
#else
|
||||||
1
|
1
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -315,7 +315,7 @@ void scan_char(uint8_t c) {
|
||||||
serial_writestr_P(PSTR("ok\n"));
|
serial_writestr_P(PSTR("ok\n"));
|
||||||
|
|
||||||
// expect next line number
|
// expect next line number
|
||||||
next_target.N_expected++;
|
next_target.N_expected = next_target.N + 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
serial_writestr_P(PSTR("RESEND: BAD CHECKSUM: EXPECTED "));
|
serial_writestr_P(PSTR("RESEND: BAD CHECKSUM: EXPECTED "));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue