aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-11-06 21:27:04 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2013-11-06 21:27:04 +0100
commit0d10f5e9bc950d6d2b3c39ae574e2d325a0fbeb6 (patch)
tree57e1990b35b96fd540e95f8d5abab67ac42c8d04 /apps
parent7d2a577571cfcc6529b5688187891f97d4b21684 (diff)
apps/osmocom_fft: recover when .step property is not given for a range
Diffstat (limited to 'apps')
-rwxr-xr-xapps/osmocom_fft4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/osmocom_fft b/apps/osmocom_fft
index 29a3429..286ea0a 100755
--- a/apps/osmocom_fft
+++ b/apps/osmocom_fft
@@ -338,7 +338,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)
@@ -379,7 +379,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)