bei Lesefehler nicht gleich Frame abbrechen

dump
Zilog80 2015-03-17 17:04:56 +01:00
rodzic e870d8e36b
commit 39eddb045e
1 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -628,12 +628,14 @@ int main(int argc, char *argv[]) {
while (!read_bits_fsk(fp, &bit, &len)) {
if (len == 0) { // reset_frame();
if (byte_count > FRAME_LEN-20) print_frame(byte_count);
bit_count = 0;
byte_count = FRAMESTART;
header_found = 0;
inc_bufpos();
buf[bufpos] = 'x';
if (byte_count > FRAME_LEN-20) {
print_frame(byte_count);
bit_count = 0;
byte_count = FRAMESTART;
header_found = 0;
}
//inc_bufpos();
//buf[bufpos] = 'x';
continue; // ...
}