mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
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:
parent
a843ab6881
commit
ca25f16548
13 changed files with 37 additions and 32 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue