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
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
//
static gpointer ozy_ep4_rx_thread(gpointer arg)
{
+ return NULL;
}
//
}
}
+ return NULL;
}
#endif
}
#ifdef USBOZY
-static int ozyusb_write(char* buffer,int length)
+static void ozyusb_write(unsigned char* buffer,int length)
{
int i;
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