From 0b8e3deb9280f2a7af3db1c7ae11f2b970e6af42 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Sun, 26 Nov 2023 17:27:05 -0500 Subject: [PATCH] Fix reset value for max charge level --- backend/src/settings/steam_deck/battery.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/settings/steam_deck/battery.rs b/backend/src/settings/steam_deck/battery.rs index 07ac1a9..87f2d87 100644 --- a/backend/src/settings/steam_deck/battery.rs +++ b/backend/src/settings/steam_deck/battery.rs @@ -597,7 +597,7 @@ impl OnPowerEvent for Battery { // only true when charge_limit_set is false and self.state.charge_limit_set is true self.state.charge_limit_set = false; if attr_exists { - self.sysfs_hwmon.set(MAX_BATTERY_CHARGE_LEVEL_ATTR, 100) + self.sysfs_hwmon.set(MAX_BATTERY_CHARGE_LEVEL_ATTR, 0) .unwrap_or_else(|e| errors.push( SettingError { msg: format!("Failed to reset (write to) {:?}: {}", MAX_BATTERY_CHARGE_LEVEL_ATTR, e),