Count only line numbers with N seen.

This commit is contained in:
Markus Hitter 2010-07-03 01:13:23 +02:00
parent 877ffce572
commit a83f301a54
1 changed files with 2 additions and 1 deletions

View File

@ -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 "));