diff options
Diffstat (limited to 'digilent_spi.c')
-rw-r--r-- | digilent_spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/digilent_spi.c b/digilent_spi.c index 458e1b63..d42c90f4 100644 --- a/digilent_spi.c +++ b/digilent_spi.c @@ -386,7 +386,11 @@ int digilent_spi_init(void) return -1; } +#if LIBUSB_API_VERSION < 0x01000106 libusb_set_debug(NULL, 3); +#else + libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO); +#endif uint16_t vid = devs_digilent_spi[0].vendor_id; uint16_t pid = devs_digilent_spi[0].device_id; |