mirror of https://github.com/arendst/Tasmota.git
Remove redundant energy reset messages
This commit is contained in:
parent
1fd8c80039
commit
e6f3f56d73
|
@ -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;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue