fix build warning: libusb_set_debug is deprecated (#1383)

* fix build warning:libuse_set_debug is deprecated

* use enum LIBUSB_LOG_LEVEL_INFO(3)
old-commit-hash: 5967690499
commatwo_master
Dean Lee 5 years ago committed by GitHub
parent be29dce3a5
commit a4c5bffd75
  1. 5
      selfdrive/boardd/boardd.cc

@ -943,7 +943,12 @@ int main() {
// init libusb // init libusb
err = libusb_init(&ctx); err = libusb_init(&ctx);
assert(err == 0); assert(err == 0);
#if LIBUSB_API_VERSION >= 0x01000106
libusb_set_option(ctx, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);
#else
libusb_set_debug(ctx, 3); libusb_set_debug(ctx, 3);
#endif
pthread_t can_health_thread_handle; pthread_t can_health_thread_handle;
err = pthread_create(&can_health_thread_handle, NULL, err = pthread_create(&can_health_thread_handle, NULL,

Loading…
Cancel
Save