Closed martinjaeger closed 4 years ago
The total energy should be stored in EEPROM and continued to accumulate after reset / power-down of the device.
The current implementation probably does not work as intended: https://github.com/LibreSolar/charge-controller-firmware/blob/b87d223dff16d56ed724951a34e400a50947a4da/src/device_status.cpp#L35
The static variables are initialized before the EEPROM content is read, so they are most probably always 0.
This was fixed in 0c01c3d0132f39bade9b82f7244fabc536b8a66e already.
The total energy should be stored in EEPROM and continued to accumulate after reset / power-down of the device.
The current implementation probably does not work as intended: https://github.com/LibreSolar/charge-controller-firmware/blob/b87d223dff16d56ed724951a34e400a50947a4da/src/device_status.cpp#L35
The static variables are initialized before the EEPROM content is read, so they are most probably always 0.