From e6a0161058c92ca1ae74d248ac1ec27760a48b4e Mon Sep 17 00:00:00 2001 From: Marco Bartolucci Date: Fri, 19 May 2017 15:44:23 +0200 Subject: [PATCH] Avoid hackrf-transfer to abort if no samples are received within one second, when hardware sync mode is enabled. --- 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 d0956265..7f4d5ee5 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -1084,7 +1084,7 @@ int main(int argc, char** argv) { time_start = time_now; - if (byte_count_now == 0) { + if (byte_count_now == 0 && (hw_sync == false || hw_sync_enable == 0)) { exit_code = EXIT_FAILURE; fprintf(stderr, "\nCouldn't transfer any bytes for one second.\n"); break;