Got it almost working...

This commit is contained in:
2023-12-03 22:08:59 +01:00
parent 1163ae5745
commit 5a38600e2a
14 changed files with 128 additions and 74 deletions

View File

@@ -32,7 +32,11 @@
namespace libusbwrap {
UsbDeviceFactory::~UsbDeviceFactory() = default;
UsbDeviceFactory::~UsbDeviceFactory() {
if (mLibusbCtx) {
libusb_exit(mLibusbCtx);
}
};
std::vector<std::unique_ptr<IUsbDevice>> UsbDeviceFactory::findAllDevices() {
refreshDeviceList();