Noolite::sendCommand was implemented
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define NOOLITE_H
|
||||
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
|
||||
#include "interfaces/iusbdevice.h"
|
||||
|
||||
@@ -37,10 +38,12 @@ public:
|
||||
Noolite(IUsbDevice *device = nullptr);
|
||||
~Noolite();
|
||||
|
||||
bool sendCommand(int channel, Command command, Params params = Params());
|
||||
bool sendCommand(unsigned char channel, Command command, const Params ¶ms = Params());
|
||||
|
||||
private:
|
||||
IUsbDevice *m_device;
|
||||
|
||||
std::optional<Data> composeCommand(unsigned char channel, Command command, const Params ¶ms) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user