From c2282075888bdbf9f1fe252fc5dd0b46ad97c459 Mon Sep 17 00:00:00 2001 From: lwvmobile <59371473+lwvmobile@users.noreply.github.com> Date: Sat, 27 Aug 2022 21:31:59 -0400 Subject: [PATCH] Additional ifdef rtl rule --add rule to prevent tuning box from opening if no rtl support. --- src/dsd_ncurses.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index c4a6386..30df074 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -743,6 +743,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state) if (choicec == 17) //RTL UDP Retune { //read in new rtl frequency + #ifdef USE_RTLSDR entry_win = newwin(6, WIDTH+18, starty+10, startx+10); box (entry_win, 0, 0); mvwprintw(entry_win, 2, 2, " Enter Frequency in Hz (851.8 MHz is 851800000 Hz) "); @@ -759,7 +760,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state) data[4] = (opts->rtlsdr_center_freq >> 24) & 0xFF; temp_freq = opts->rtlsdr_center_freq; - + #endif choicec = 18; }