Skip to content

Commit

Permalink
Fixed loading error from previous version energy accounting
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Jan 29, 2023
1 parent a5636a6 commit d777040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/EnergyAccounting/src/EnergyAccounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ bool EnergyAccounting::load() {
} else if(buf[0] == 4) {
EnergyAccountingData4* data = (EnergyAccountingData4*) buf;
this->data = { 5, data->month,
(uint16_t) (data->costYesterday / 10), (uint16_t) (data->costThisMonth / 100), (uint16_t) (data->costLastMonth / 100),
data->costYesterday,
data->costThisMonth,
data->costLastMonth,
0,0,0, // Income from production
data->peaks[0].day, data->peaks[0].value,
data->peaks[1].day, data->peaks[1].value,
Expand Down

0 comments on commit d777040

Please sign in to comment.