From 2ef7995763f45b8922bacf5e7fb5fd8ba8962e5a Mon Sep 17 00:00:00 2001 From: Yan Date: Fri, 19 Mar 2021 16:23:36 +0100 Subject: [PATCH] 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. --- host/hackrf-tools/src/hackrf_sweep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index ad598a49..38a4c297 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -727,6 +727,7 @@ int main(int argc, char** argv) { } } + fflush(outfile); result = hackrf_is_streaming(device); if (do_exit) { fprintf(stderr, "\nExiting...\n");