Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
reg, // wIndex
0, // pointer to destination buffer
0, // wLength
reg, // wIndex
0, // pointer to destination buffer
0, // wLength
);
handle_error(bytes);
}
);
handle_error(bytes);
}
0, // wIndex
&buf, // pointer to destination buffer
1, // wLength
0, // wIndex
&buf, // pointer to destination buffer
1, // wLength
);
handle_error(bytes);
return buf;
);
handle_error(bytes);
return buf;
reg, // wIndex
0, // pointer to destination buffer
0, // wLength
reg, // wIndex
0, // pointer to destination buffer
0, // wLength
if (*h)
return;
libusb_init(NULL);
if (*h)
return;
libusb_init(NULL);
+ libusb_set_debug(NULL, LIBUSB_LOG_LEVEL_WARNING);
*h = ncusb_find_and_open(NULL, vid, pid, manuf, product, serial);
if (!(*h)) {
fprintf(stderr, "No PL2303 USB device %04x:%04x found ;(\n", vid, pid);
*h = ncusb_find_and_open(NULL, vid, pid, manuf, product, serial);
if (!(*h)) {
fprintf(stderr, "No PL2303 USB device %04x:%04x found ;(\n", vid, pid);