Bug fix: correctly set charge limit from UI

This commit is contained in:
Luke D. Jones
2025-01-19 17:29:36 +13:00
parent 82431ee25b
commit 450205f9a9
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
- Per-AC/DC, per-profile tunings enabled (Battery vs AC power + platform profile)
- Add ability to restore PPT defaults
- Add PPT help dialogue to UI
- Bug fix: correctly set charge limit from UI
## [v6.1.0-rc4]

View File

@@ -145,8 +145,9 @@ export component PageSystem inherits Rectangle {
minimum: 20;
maximum: 100;
has_reset: false;
value <=> SystemPageData.charge_control_end_threshold;
value: SystemPageData.charge_control_end_threshold;
released => {
SystemPageData.charge_control_end_threshold = self.value;
SystemPageData.cb_charge_control_end_threshold(Math.round(SystemPageData.charge_control_end_threshold))
}
}