From: c vw Date: Tue, 22 Oct 2019 07:42:28 +0000 (+0200) Subject: Fixes that make it compile for OZY X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/(%5B%5E?a=commitdiff_plain;h=e4de14ea51c8fcfa497ff28080f31e39fe433bd4;p=pihpsdr.git Fixes that make it compile for OZY --- diff --git a/about_menu.c b/about_menu.c index 4cd0a12..46e83e6 100644 --- a/about_menu.c +++ b/about_menu.c @@ -127,7 +127,7 @@ void about_menu(GtkWidget *parent) { case ORIGINAL_PROTOCOL: case NEW_PROTOCOL: #ifdef USBOZY - if(d->device==DEVICE_OZY) { + if(radio->device==DEVICE_OZY) { sprintf(text,"%s\nDevice OZY: USB /dev/ozy",text,radio->protocol==ORIGINAL_PROTOCOL?"1":"2",radio->software_version/10,radio->software_version%10); } else { #endif diff --git a/radio.c b/radio.c index fd183f5..3840da0 100644 --- a/radio.c +++ b/radio.c @@ -392,8 +392,7 @@ void start_radio() { sem_post(&property_sem); #endif - char text[256]; - //for(i=0;iprotocol) { case ORIGINAL_PROTOCOL: case NEW_PROTOCOL: @@ -407,9 +406,11 @@ void start_radio() { radio->protocol==ORIGINAL_PROTOCOL?"Protocol 1":"Protocol 2", radio->software_version/10, radio->software_version%10); +#ifdef USBOZY + } +#endif break; } - //}