LogData renamed to DeviceStatus / dev_stat

Rationale: Logging is used for historic data, but error flags are instantaneous data. Device status
is more generic and now contains also the internal temperature measurement.
This commit is contained in:
Martin Jaeger
2019-11-01 09:54:01 +01:00
parent af4af04697
commit 22f9138a15
17 changed files with 359 additions and 359 deletions
+4 -4
View File
@@ -18,10 +18,10 @@ const int night_hours = 3;
void energy_calculation_init()
{
log_data.solar_in_total_Wh = 0;
log_data.load_out_total_Wh = 0;
log_data.bat_chg_total_Wh = 0;
log_data.bat_dis_total_Wh = 0;
dev_stat.solar_in_total_Wh = 0;
dev_stat.load_out_total_Wh = 0;
dev_stat.bat_chg_total_Wh = 0;
dev_stat.bat_dis_total_Wh = 0;
hv_terminal.neg_energy_Wh = 0.0;
load_terminal.pos_energy_Wh = 0.0;
lv_terminal.pos_energy_Wh = 0.0;