Skip to content

Commit

Permalink
Merge pull request #202 from hinxx/master
Browse files Browse the repository at this point in the history
fix compilation of USBTMC for libusb < 1.0.22
  • Loading branch information
MarkRivers committed Feb 3, 2024
2 parents 11acac1 + 1673e31 commit d925305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions asyn/drvAsynUSBTMC/drvAsynUSBTMC.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ report(void *pvt, FILE *fp, int details)
if (details >= 100) {
int l = details % 100;
fprintf(fp, "==== Set libusb debug level %d ====\n", l);
#if LIBUSB_API_VERSION >= 0x01000106
libusb_set_option(pdpvt->usb, LIBUSB_OPTION_LOG_LEVEL, l);
#else
libusb_set_debug(pdpvt->usb, 1);
#endif
}
}

Expand Down

0 comments on commit d925305

Please sign in to comment.