aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_ascii_art_dft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/rx_ascii_art_dft.cpp')
-rw-r--r--host/examples/rx_ascii_art_dft.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/host/examples/rx_ascii_art_dft.cpp b/host/examples/rx_ascii_art_dft.cpp
index 3652522f2..12f9477a8 100644
--- a/host/examples/rx_ascii_art_dft.cpp
+++ b/host/examples/rx_ascii_art_dft.cpp
@@ -286,9 +286,11 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
ref_lvl -= 10;
else if (ch == 'L')
ref_lvl += 10;
- else if (ch == 'd')
- dyn_rng -= 10;
- else if (ch == 'D')
+ else if (ch == 'd') {
+ if (dyn_rng > 10) {
+ dyn_rng -= 10;
+ }
+ } else if (ch == 'D')
dyn_rng += 10;
else if (ch == 's') {
if (frame_rate > 1) {