From: John Melton - G0ORX/N6LYT Date: Sat, 18 Feb 2017 19:03:30 +0000 (+0000) Subject: fixed problem building when RADIOBERRY not defined. X-Git-Url: https://git.rkrishnan.org/pf/$rel_link?a=commitdiff_plain;h=967a860df7b46878e10cc65bbab4eedf4d794278;p=pihpsdr.git fixed problem building when RADIOBERRY not defined. --- diff --git a/Makefile b/Makefile index acbfb52..f6d25ab 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,11 @@ GPIO_INCLUDE=GPIO #I2C_INCLUDE=I2C #uncomment the line below for the platform being compiled on -#UNAME_N=raspberrypi +UNAME_N=raspberrypi #UNAME_N=odroid #UNAME_N=up #UNAME_N=pine64 -UNAME_N=jetsen +#UNAME_N=jetsen CC=gcc LINK=gcc @@ -52,7 +52,7 @@ endif #LIMESDR_INCLUDE=LIMESDR # uncomment the line below when Radioberry radio cape is plugged in -RADIOBERRY_INCLUDE=RADIOBERRY +#RADIOBERRY_INCLUDE=RADIOBERRY ifeq ($(RADIOBERRY_INCLUDE),RADIOBERRY) RADIOBERRY_OPTIONS=-D RADIOBERRY diff --git a/tx_menu.c b/tx_menu.c index c3df39f..0ba3f00 100644 --- a/tx_menu.c +++ b/tx_menu.c @@ -166,7 +166,7 @@ void tx_menu(GtkWidget *parent) { #ifdef RADIOBERRY if(protocol==ORIGINAL_PROTOCOL || protocol==NEW_PROTOCOL || protocol==RADIOBERRY_PROTOCOL) { #else - if(protocol==ORIGINAL_PROTOCOL || protocol==NEW_PROTOCOL)) { + if(protocol==ORIGINAL_PROTOCOL || protocol==NEW_PROTOCOL) { #endif linein_b=gtk_check_button_new_with_label("Mic Line In (ACC connector)"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (linein_b), mic_linein);