AlexanderTonn / SolarPowerhouse

Solar balkony power plant, which includes control logic for switching between micro inverter and battery depending on the state of charge. The repository containing any drawings and manuals.
Apache License 2.0
0 stars 0 forks source link

[BUG] total Ah charged & total kWh Generation not assembled correctly #42

Closed AlexanderTonn closed 5 months ago

AlexanderTonn commented 6 months ago

🐛 Describe the bug

 ‼️ To Reproduce**

// ...
controllerInformation.uiTotalAmpHoursCharged = uiBuf.at(24); 
controllerInformation.uiTotalAmpHoursCharged += uiBuf.at(23) << 16; // adding high byte
controllerInformation.uiTotalAmpHoursDrawn += uiBuf.at(26) ;
controllerInformation.uiTotalAmpHoursDrawn = uiBuf.at(25) << 16; // adding high byte
controllerInformation.uiCumulativeKwhGeneration += uiBuf.at(28) ;
controllerInformation.uiCumulativeKwhGeneration = uiBuf.at(27) << 16; // adding high byte

// ... 

⁉️ Expected behavior

A clear and concise description of what you expected to happen.

📷 Screenshots

Bildschirmfoto 2024-01-03 um 00 10 09

Additional context

Add any other context about the problem here.

:white_check_mark: Tasks