Changed log level of NRG: EnergyTotal to Level 4 vs Level 3

With console log set to level 3, this function prints out the EnergyTotal every second, which makes the console pretty useless for any other debugging work. Makes more sense to me to have it output all that on Level 4.  Still accessible if people want it, but less obtrusive for normal debugging work.
This commit is contained in:
pkkrusty 2021-11-30 14:05:40 -08:00 committed by GitHub
parent e951fa9f31
commit 229b772d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ void EnergyUpdateTotal(void) {
// Provide total import active energy as float Energy.import_active[phase] in kWh: 98Wh = 0.098kWh
for (uint32_t i = 0; i < Energy.phase_count; i++) {
AddLog(LOG_LEVEL_DEBUG, PSTR("NRG: EnergyTotal[%d] %4_f kWh"), i, &Energy.import_active[i]);
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("NRG: EnergyTotal[%d] %4_f kWh"), i, &Energy.import_active[i]);
if (0 == Energy.start_energy[i] || (Energy.import_active[i] < Energy.start_energy[i])) {
Energy.start_energy[i] = Energy.import_active[i]; // Init after restart and handle roll-over if any