Remove redundant energy reset messages

This commit is contained in:
Theo Arends 2021-03-06 15:29:00 +01:00
parent 1fd8c80039
commit e6f3f56d73
3 changed files with 6 additions and 0 deletions

View File

@ -464,8 +464,10 @@ void McpParseData(void)
} else {
Energy.current[0] = (float)mcp_current_rms / 10000;
}
/*
} else { // Powered off
Energy.data_valid[0] = ENERGY_WATCHDOG;
*/
}
}

View File

@ -174,9 +174,11 @@ void Ade7953GetData(void)
Energy.current[channel] = (float)Ade7953.current_rms[channel] / (Settings.energy_current_calibration * 10);
}
}
/*
} else { // Powered off
Energy.data_valid[0] = ENERGY_WATCHDOG;
Energy.data_valid[1] = ENERGY_WATCHDOG;
*/
}
if (active_power_sum) {

View File

@ -365,9 +365,11 @@ void Cse7761GetData(void) {
CSE7761Data.energy_update++;
}
}
/*
} else { // Powered off
Energy.data_valid[0] = ENERGY_WATCHDOG;
Energy.data_valid[1] = ENERGY_WATCHDOG;
*/
}
}