Formatting...

This commit is contained in:
2022-11-12 18:37:24 +01:00
parent d7dfdc4739
commit f09e4ab5c8
6 changed files with 37 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
#include "UsbTypes.hpp"
#include <vector>
#include <optional>
#include <vector>
#pragma once

View File

@@ -10,8 +10,9 @@
namespace ptprnt::driver {
class P700Driver : public IDriver {
public:
P700Driver(std::shared_ptr<Usb> usbDriver, uint16_t usbDevVendor = 0x04f9, uint16_t usbDevId = 0x2061);
public:
P700Driver(std::shared_ptr<Usb> usbDriver, uint16_t usbDevVendor = 0x04f9,
uint16_t usbDevId = 0x2061);
~P700Driver() override;
driver::info getInfo() override;
@@ -19,7 +20,7 @@ class P700Driver : public IDriver {
bool close() override;
bool command() override;
private:
private:
std::shared_ptr<Usb> mUsbDriver{0};
UsbDevice mUsbDev{0};

View File

@@ -8,13 +8,13 @@
namespace ptprnt::driver {
class Usb : public IUsb {
public:
public:
Usb();
~Usb() override;
std::optional<std::vector<UsbDevice>> getDevices() override;
private:
private:
std::vector<UsbDevice> mDevices{};
};