From: c vw <dl1ycf@darc.de>
Date: Tue, 10 Dec 2019 15:08:51 +0000 (+0100)
Subject: fixing up OZY things
X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/frontends/using.html?a=commitdiff_plain;h=6eef5a787fd1f60569bc01ff18d270a7965966f7;p=pihpsdr.git

fixing up OZY things
---

diff --git a/about_menu.c b/about_menu.c
index 5860008..a8e447b 100644
--- a/about_menu.c
+++ b/about_menu.c
@@ -130,7 +130,7 @@ void about_menu(GtkWidget *parent) {
     case NEW_PROTOCOL:
 #ifdef USBOZY
       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);
+        sprintf(text,"%s\nDevice OZY: USB /dev/ozy Protocol %s v%d.%d",text,radio->protocol==ORIGINAL_PROTOCOL?"1":"2",radio->software_version/10,radio->software_version%10);
       } else {
 #endif
         
diff --git a/old_protocol.c b/old_protocol.c
index 035b30b..188dfd5 100644
--- a/old_protocol.c
+++ b/old_protocol.c
@@ -243,7 +243,7 @@ static GThread *ozy_EP6_rx_thread_id;
 static gpointer ozy_ep4_rx_thread(gpointer arg);
 static gpointer ozy_ep6_rx_thread(gpointer arg);
 static void start_usb_receive_threads();
-static int ozyusb_write(char* buffer,int length);
+static void ozyusb_write(unsigned char* buffer,int length);
 #define EP6_IN_ID  0x86                         // end point = 6, direction toward PC
 #define EP2_OUT_ID  0x02                        // end point = 2, direction from PC
 #define EP6_BUFFER_SIZE 2048
@@ -342,6 +342,7 @@ static void start_usb_receive_threads()
 //
 static gpointer ozy_ep4_rx_thread(gpointer arg)
 {
+  return NULL;
 }
 
 //
@@ -381,6 +382,7 @@ static gpointer ozy_ep6_rx_thread(gpointer arg) {
     }
 
   }
+  return NULL;
 }
 #endif
 
@@ -1621,7 +1623,7 @@ void ozy_send_buffer() {
 }
 
 #ifdef USBOZY
-static int ozyusb_write(char* buffer,int length)
+static void ozyusb_write(unsigned char* buffer,int length)
 {
   int i;
 
diff --git a/ozyio.c b/ozyio.c
index c71121e..125cf25 100644
--- a/ozyio.c
+++ b/ozyio.c
@@ -573,7 +573,6 @@ static int file_exists (const char * fileName)
 	return ( i == 0 ) ? 1 : 0 ;
 }
 
-#ifdef __linux__
 int filePath (char *sOut, const char *sIn) {
 	int rc = 0;
 
@@ -617,7 +616,6 @@ int filePath (char *sOut, const char *sIn) {
 	}
 	return rc;
 }
-#endif
 
 
 
diff --git a/radio_menu.c b/radio_menu.c
index 9ee2fe3..4576068 100644
--- a/radio_menu.c
+++ b/radio_menu.c
@@ -617,7 +617,7 @@ void radio_menu(GtkWidget *parent) {
   col++;
 
 #ifdef USBOZY
-  if (protocol==ORIGINAL_PROTOCOL && (device == DEVICE_OZY) || (device == DEVICE_METIS))
+  if (protocol==ORIGINAL_PROTOCOL && (device == DEVICE_OZY || device == DEVICE_METIS))
 #else
   if (protocol==ORIGINAL_PROTOCOL && radio->device == DEVICE_METIS)
 #endif