win tweak
This commit is contained in:
parent
e8d839eccb
commit
b2c64d8631
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ PosPrinter::PosPrinter()
|
||||||
throw std::runtime_error("Init error");
|
throw std::runtime_error("Init error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
libusb_set_option(contextPtr_, LIBUSB_OPTION_USE_USBDK);
|
||||||
|
#endif
|
||||||
|
|
||||||
libusb_device** devList;
|
libusb_device** devList;
|
||||||
int devCount = libusb_get_device_list(contextPtr_, &devList);
|
int devCount = libusb_get_device_list(contextPtr_, &devList);
|
||||||
if (devCount <= 0) {
|
if (devCount <= 0) {
|
||||||
|
|
Loading…
Reference in a new issue