hackrf_sweep: flush output earlier

Gives listener access to complete data faster.
Otherwise the data might be delayed until the whole closing procedure is done.
This commit is contained in:
Yan
2021-03-19 16:23:36 +01:00
parent e6eb4ba29b
commit 2ef7995763

View File

@ -727,6 +727,7 @@ int main(int argc, char** argv) {
}
}
fflush(outfile);
result = hackrf_is_streaming(device);
if (do_exit) {
fprintf(stderr, "\nExiting...\n");