mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 23:46:37 +02:00
0.8.80
* optimize API authentication, Error-Codes #1415 * breaking change: authentication API command changed #1415 * breaking change: limit has to be send als `float`, `0.0 .. 100.0` #1415 * updated documentation #1415 * fix don't send control command twice #1426
This commit is contained in:
parent
315541ea51
commit
31232bfd80
10 changed files with 116 additions and 70 deletions
|
@ -163,9 +163,10 @@ class Inverter {
|
|||
|
||||
void tickSend(std::function<void(uint8_t cmd, bool isDevControl)> cb) {
|
||||
if(mDevControlRequest) {
|
||||
if(InverterStatus::OFF != status)
|
||||
if(InverterStatus::OFF != status) {
|
||||
cb(devControlCmd, true);
|
||||
else
|
||||
devControlCmd = InitDataState;
|
||||
} else
|
||||
DPRINTLN(DBG_WARN, F("Inverter is not avail"));
|
||||
mDevControlRequest = false;
|
||||
} else if (IV_MI != ivGen) { // HM / HMS / HMT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue