forked from sdr/gr-osmosdr
apps/osmocom_fft: recover when .step property is not given for a range
This commit is contained in:
parent
05e17c6417
commit
9e6f68b2e6
|
@ -333,7 +333,7 @@ class app_top_block(stdgui2.std_top_block, pubsub):
|
|||
key=GAIN_KEY(gain_name),
|
||||
minimum=range.start(),
|
||||
maximum=range.stop(),
|
||||
step_size=range.step(),
|
||||
step_size=range.step() or (range.stop() - range.start())/10,
|
||||
)
|
||||
gain_hbox.AddSpacer(3)
|
||||
|
||||
|
@ -375,7 +375,7 @@ class app_top_block(stdgui2.std_top_block, pubsub):
|
|||
key=BWIDTH_KEY,
|
||||
minimum=bw_range.start(),
|
||||
maximum=bw_range.stop(),
|
||||
step_size=bw_range.step(),
|
||||
step_size=bw_range.step() or (bw_range.stop() - bw_range.start())/100,
|
||||
)
|
||||
bwidth_hbox.AddSpacer(3)
|
||||
|
||||
|
|
Loading…
Reference in New Issue