From f7896ecd7e17fe98a7053dfc577cdab9000f9141 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Tue, 10 Mar 2020 09:59:22 +0200 Subject: [PATCH] Add additional fields to cInverter parameterized constructor Adds the capability to use non static values for `QPIWS`, `QMOD` and `QPIGS` commands --- sources/inverter-cli/inverter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/inverter-cli/inverter.h b/sources/inverter-cli/inverter.h index 125f2da..3501b6b 100644 --- a/sources/inverter-cli/inverter.h +++ b/sources/inverter-cli/inverter.h @@ -23,7 +23,7 @@ class cInverter { uint16_t cal_crc_half(uint8_t *pin, uint8_t len); public: - cInverter(std::string devicename, int qpiri); + cInverter(std::string devicename, int qpiri, int qpiws, int qmod, int qpigs); void poll(); void runMultiThread() { std::thread t1(&cInverter::poll, this);