From b2c64d86316fe51f937baeb75d4b47271cfe8a16 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 6 Aug 2018 13:52:58 +0200 Subject: [PATCH] win tweak --- src/printer/posprinter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/printer/posprinter.cpp b/src/printer/posprinter.cpp index 93b9e0b..eb32ceb 100644 --- a/src/printer/posprinter.cpp +++ b/src/printer/posprinter.cpp @@ -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) {