prevent send devcontrol request during disabled night communication

changed yield total correction as module (inverter input) value #570
MQTT Yield Day zero, next try to fix #671
This commit is contained in:
lumapu 2023-02-12 02:00:54 +01:00
parent a843ab6881
commit ca25f16548
13 changed files with 37 additions and 32 deletions

View file

@ -474,7 +474,7 @@ class PubMqtt {
}
}
void sendIvData(bool sendTotals = true) {
void sendIvData() {
if(mSendList.empty())
return;
@ -527,8 +527,8 @@ class PubMqtt {
total[3] += iv->getValue(i, rec);
break;
}
sendTotal = true;
}
sendTotal = true;
}
yield();
}
@ -537,9 +537,6 @@ class PubMqtt {
mSendList.pop(); // remove from list once all inverters were processed
if(!sendTotals) // skip total value calculation
continue;
if ((true == sendTotal) && processIvStatus()) {
uint8_t fieldId;
for (uint8_t i = 0; i < 4; i++) {