Goal of this PR should be to integrate a working CLI parser so that commands can be sent to the Printer class to print text, such as ptprnt -t=FooBar also, standard flags for setting the output verbosity and help should be implemented Reviewed-on: #4
This commit is contained in:
@@ -29,10 +29,11 @@
|
||||
#include "libusbwrap/interface/IUsbDevice.hpp"
|
||||
|
||||
namespace libusbwrap {
|
||||
UsbDeviceFactory::UsbDeviceFactory() {}
|
||||
|
||||
UsbDeviceFactory::~UsbDeviceFactory() {
|
||||
libusb_free_device_list(mLibusbDeviceList, 1);
|
||||
if (mDeviceListInitialized) {
|
||||
libusb_free_device_list(mLibusbDeviceList, 1);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<IUsbDevice>> UsbDeviceFactory::findAllDevices() {
|
||||
@@ -52,7 +53,7 @@ int UsbDeviceFactory::refreshDeviceList() {
|
||||
} else if (ret == 0) {
|
||||
spdlog::warn("No USB devices found");
|
||||
}
|
||||
|
||||
mDeviceListInitialized = true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user