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)) { while (!read_bits_fsk(fp, &bit, &len)) {
if (len == 0) { // reset_frame(); if (len == 0) { // reset_frame();
if (byte_count > FRAME_LEN-20) print_frame(byte_count); if (byte_count > FRAME_LEN-20) {
bit_count = 0; print_frame(byte_count);
byte_count = FRAMESTART; bit_count = 0;
header_found = 0; byte_count = FRAMESTART;
inc_bufpos(); header_found = 0;
buf[bufpos] = 'x'; }
//inc_bufpos();
//buf[bufpos] = 'x';
continue; // ... continue; // ...
} }