flush output bits immediately to stop pause in BER reports

master
David Rowe 2020-08-09 13:06:53 +09:30
parent 8f4fc98b2b
commit c629115642
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
fprintf(stderr, "Short write, bits lost, exiting!\n");
rtlsdr_cancel_async(dev);
}
if((FILE*)ctx == stdout) fflush((FILE*)ctx);
if (dashboard) {
/* update buffer of timing samples */
if (norm_rx_timing_log_index < NORM_RX_TIMING_LOG_SZ)