Skip to content

Commit 418210b

Browse files
committed
fixed issue
1 parent 008eced commit 418210b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_hackrf/pyhackrf_tools/pyhackrf_transfer.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def pyhackrf_transfer(frequency: int = None, sample_rate: int = 10_000_000, base
384384

385385
if byte_count == 0 and synchronize:
386386
sys.stderr.write('Waiting for trigger...\n')
387-
elif not (byte_count == 0 and current_device_data['flush_complete']):
387+
elif byte_count != 0 and not current_device_data['flush_complete']:
388388
dB_full_scale = 10 * np.log10(stream_power / (byte_count * 127 * 127)) + 3
389389
sys.stderr.write(f'{(byte_count / time_difference) / 1e6:.1f} MiB/second, average power {dB_full_scale:.1f} dBfs\n')
390390
elif byte_count == 0 and not synchronize and not current_device_data['flush_complete']:

0 commit comments

Comments
 (0)