kopia lustrzana https://github.com/rs1729/RS
bei Lesefehler nicht gleich Frame abbrechen
rodzic
e870d8e36b
commit
39eddb045e
|
@ -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; // ...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue