]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixes that make it compile for OZY
authorc vw <dl1ycf@darc.de>
Tue, 22 Oct 2019 07:42:28 +0000 (09:42 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 22 Oct 2019 07:42:28 +0000 (09:42 +0200)
about_menu.c
radio.c

index 4cd0a1289a6999546c927814cb7cf06185298b9e..46e83e6e6cd3302285162f5dba2b6a09eb2889e4 100644 (file)
@@ -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 fd183f57b001ba29b437ccfaa21727b9fbffbe9d..3840da03b2648dfb10d57ac1760791769caafabe 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -392,8 +392,7 @@ void start_radio() {
   sem_post(&property_sem);
 #endif
 
-  char text[256];
-  //for(i=0;i<devices;i++) {
+    char text[256];
     switch(radio->protocol) {
       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;
     }
-  //}