Skip to content

Commit 8f63e5d

Browse files
committed
updated
1 parent f136e02 commit 8f63e5d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

python_hackrf/pyhackrf_tools/pyhackrf_transfer.pyx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,10 @@ def pyhackrf_transfer(frequency: int = None, sample_rate: int = 10_000_000, base
403403

404404
if print_to_console:
405405
sys.stderr.write(f'Total time: {time_now - time_start:.5f} seconds\n')
406+
time.sleep(.5)
406407

407-
if rx_filename is not None:
408-
if rx_filename != '-':
409-
current_device_data['rx_file'].close()
410-
else:
411-
sys.stdout.flush()
412-
time.sleep(.5)
408+
if rx_filename not in ('-', None):
409+
current_device_data['rx_file'].close()
413410

414411
if tx_filename not in ('-', None):
415412
current_device_data['tx_file'].close()

0 commit comments

Comments
 (0)