* usb_lowlevel.c
* - Low Level IO
*/
-#define DEBUG 1
+#define DEBUG 0
#include <acess.h>
#include "usb.h"
#include "usb_proto.h"
if(Index == 0) return strdup("");
+ str.Length = 0;
USB_int_ReadDescriptor(Dev, Endpoint, 3, Index, sizeof(str), &str);
+ if(str.Length == 0) return NULL;
if(str.Length < 2) {
Log_Error("USB", "String %p:%i:%i:%i descriptor is undersized (%i)",
Dev->Host, Dev->Address, Endpoint, Index, str.Length);