Displaying 1 result from an estimated 1 matches for "raw_buf_test".
Did you mean:
p_raw_buf_test
2007 Jan 31
3
Re: [Nut-upsuser] Ablerex 625L USB version
...dify
the libusb.c file to set a report size in libusb_get_report to 16 the
error messages go away. This is the code as it currently stands:
static int libusb_get_report(usb_dev_handle *udev, int ReportId,
unsigned char *raw_buf, int ReportSize )
{
int ReportSize_test = 16;
unsigned char raw_buf_test[ReportSize_test + 1];
int rc;
unsigned char *p_raw_buf_test;
upsdebugx(4, "Entering libusb_get_report, ReportSize: %i,
ReportSize_test: %i",ReportSize, ReportSize_test);
if (udev != NULL)
{
rc = usb_control_msg(udev,...