From cb8fc333aa9b60b095539761ea831fd90ccba1ea Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Wed, 21 Sep 2022 11:42:21 +0100 Subject: [PATCH] Fix inaccurate error message when TX completes near a 1 second boundary. --- host/hackrf-tools/src/hackrf_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index e6ac8fca..d665b0a7 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -1413,7 +1413,7 @@ int main(int argc, char** argv) time_start = time_now; - if ((completed_count_now == 0) && (!hw_sync)) { + if ((completed_count_now == 0) && (!hw_sync) && (!tx_complete)) { exit_code = EXIT_FAILURE; fprintf(stderr, "\nCouldn't transfer any bytes for one second.\n");