Add additional fields to cInverter parameterized constructor
Adds the capability to use non static values for `QPIWS`, `QMOD` and `QPIGS` commands
This commit is contained in:
@@ -23,7 +23,7 @@ class cInverter {
|
|||||||
uint16_t cal_crc_half(uint8_t *pin, uint8_t len);
|
uint16_t cal_crc_half(uint8_t *pin, uint8_t len);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cInverter(std::string devicename, int qpiri);
|
cInverter(std::string devicename, int qpiri, int qpiws, int qmod, int qpigs);
|
||||||
void poll();
|
void poll();
|
||||||
void runMultiThread() {
|
void runMultiThread() {
|
||||||
std::thread t1(&cInverter::poll, this);
|
std::thread t1(&cInverter::poll, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user