mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 23:06:11 +02:00
0.7.17
* next attempt to fix total yield day for multiple inverters #1016 * added two more states for the inverter status (also docu)
This commit is contained in:
parent
aaf685f465
commit
812adce64e
9 changed files with 28 additions and 22 deletions
|
@ -322,14 +322,14 @@ void app::tickComm(void) {
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::tickZeroValues(void) {
|
||||
zeroIvValues(false);
|
||||
zeroIvValues(!CHECK_AVAIL, SKIP_YIELD_DAY);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::tickMinute(void) {
|
||||
// only triggered if 'reset values on no avail is enabled'
|
||||
|
||||
zeroIvValues(true);
|
||||
zeroIvValues(CHECK_AVAIL, SKIP_YIELD_DAY);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -339,7 +339,7 @@ void app::tickMidnight(void) {
|
|||
uint32_t nxtTrig = gTimezone.toUTC(localTime - (localTime % 86400) + 86400); // next midnight local time
|
||||
onceAt(std::bind(&app::tickMidnight, this), nxtTrig, "mid2");
|
||||
|
||||
zeroIvValues(false, false);
|
||||
zeroIvValues(!CHECK_AVAIL, !SKIP_YIELD_DAY);
|
||||
|
||||
if (mMqttEnabled)
|
||||
mMqtt.tickerMidnight();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue