win tweak

This commit is contained in:
Martin Brodbeck 2018-08-06 13:52:58 +02:00
parent e8d839eccb
commit b2c64d8631
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ PosPrinter::PosPrinter()
throw std::runtime_error("Init error");
}
#if defined(_WIN32)
libusb_set_option(contextPtr_, LIBUSB_OPTION_USE_USBDK);
#endif
libusb_device** devList;
int devCount = libusb_get_device_list(contextPtr_, &devList);
if (devCount <= 0) {