Reduce verbose debug

This commit is contained in:
Gunnar Skjold 2023-05-04 12:02:16 +02:00
parent 2db38835c5
commit 324459df97

View File

@ -545,7 +545,7 @@ void loop() {
debugW_P(PSTR("Used %dms to read HAN port (false)"), millis()-start);
}
}
if(!ds.isHappy() && now - meterState.getLastUpdateMillis() > 1800000) {
if(millis() - meterState.getLastUpdateMillis() > 1800000 && !ds.isHappy()) {
handleClear(now);
}
} catch(const std::exception& e) {