Skip to content

Commit 10cc075

Browse files
committed
fixed issue
1 parent 8f63e5d commit 10cc075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_hackrf/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def main():
261261
pyhackrf_transfer.pyhackrf_transfer(
262262
frequency=int(args.freq_hz),
263263
sample_rate=int(args.s) * 1e6,
264-
baseband_filter_bandwidth=float(args.b) * 1e6,
264+
baseband_filter_bandwidth=float(args.b) * 1e6 if args.b is not None else None,
265265
i_frequency=int(args.i_freq_hz) if args.i_freq_hz is not None else None,
266266
lo_frequency=int(args.lo_freq_hz) if args.lo_freq_hz is not None else None,
267267
image_reject=pyhackrf.py_rf_path_filter.RF_PATH_FILTER_BYPASS if args.image_reject == 'bypass' else (pyhackrf.py_rf_path_filter.RF_PATH_FILTER_LOW_PASS if args.image_reject == 'low' else (pyhackrf.py_rf_path_filter.RF_PATH_FILTER_HIGH_PASS if args.image_reject == 'high' else -1)),

0 commit comments

Comments
 (0)