Bugfix: log

This commit is contained in:
Patrick Amrhein 2024-04-02 17:38:33 +02:00
parent bcbb50fe3e
commit f2c2c27d41
2 changed files with 10 additions and 7 deletions

View file

@ -59,10 +59,13 @@ class ZeroExport {
void loop(void) {
if ((!mIsInitialized) || (!mCfg->enabled)) return;
mPowermeter.loop();
unsigned long Tsp = millis();
bool DoLog = false;
unsigned long Tsp = millis();
mPowermeter.loop(&Tsp, &DoLog);
if (DoLog) sendLog();
clearLog();
DoLog = false;
for (uint8_t group = 0; group < ZEROEXPORT_MAX_GROUPS; group++) {
zeroExportGroup_t *cfgGroup = &mCfg->groups[group];