mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
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:
parent
e951fa9f31
commit
229b772d99
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user