Marstek B2500: Fix wrong gauge display for panel 2 and output 2

This commit is contained in:
Andreas Shimokawa 2024-12-25 11:52:27 +01:00
parent 8aa7df3aeb
commit 122108ec6d
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
### Changelog
#### Next
* Marstek B2500: Fix wrong gauge display for panel 2 and output 2
#### 0.83.0
* Add first start onboarding screen
* Initial support for Bowers and Wilkins P Series

View File

@ -70,9 +70,9 @@ public class SolarEquipmentStatusActivity extends AbstractGBActivity {
int output2_watt = extras.getInt(EXTRA_OUTPUT2_WATT);
updateWidget("battery", battery_pct + "%", (float) (battery_pct / 100.0));
updateWidget("panel1", panel1_watt + "W", (float) (panel1_watt / 380.0));
updateWidget("panel2", panel2_watt + "W", (float) (panel1_watt / 380.0));
updateWidget("panel2", panel2_watt + "W", (float) (panel2_watt / 380.0));
updateWidget("output1", output1_watt + "W", (float) (output1_watt / 400.0));
updateWidget("output2", output2_watt + "W", (float) (output1_watt / 400.0));
updateWidget("output2", output2_watt + "W", (float) (output2_watt / 400.0));
swipeLayout.setRefreshing(false);
}