Avoid hackrf-transfer to abort if no samples are received within one second, when hardware sync mode is enabled.

This commit is contained in:
Marco Bartolucci
2017-05-19 15:44:23 +02:00
parent a773b463cb
commit e6a0161058

View File

@ -1084,7 +1084,7 @@ int main(int argc, char** argv) {
time_start = time_now; 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; exit_code = EXIT_FAILURE;
fprintf(stderr, "\nCouldn't transfer any bytes for one second.\n"); fprintf(stderr, "\nCouldn't transfer any bytes for one second.\n");
break; break;