mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-08 15:40:34 -04:00
power: Simplify platform config test
This commit is contained in:
parent
a957591193
commit
d5f4de72ca
1 changed files with 6 additions and 14 deletions
14
src/power.rs
14
src/power.rs
|
@ -1099,21 +1099,13 @@ CCLK_RANGE in Core0:
|
||||||
async fn read_max_charge_level() {
|
async fn read_max_charge_level() {
|
||||||
let handle = testing::start();
|
let handle = testing::start();
|
||||||
|
|
||||||
let platform_config = Some(PlatformConfig {
|
let mut platform_config = PlatformConfig::default();
|
||||||
factory_reset: None,
|
platform_config.battery_charge_limit = Some(BatteryChargeLimitConfig {
|
||||||
update_bios: None,
|
|
||||||
update_dock: None,
|
|
||||||
storage: None,
|
|
||||||
fan_control: None,
|
|
||||||
tdp_limit: None,
|
|
||||||
gpu_clocks: None,
|
|
||||||
battery_charge_limit: Some(BatteryChargeLimitConfig {
|
|
||||||
suggested_minimum_limit: Some(10),
|
suggested_minimum_limit: Some(10),
|
||||||
hwmon_name: String::from("steamdeck_hwmon"),
|
hwmon_name: String::from("steamdeck_hwmon"),
|
||||||
attribute: String::from("max_battery_charge_level"),
|
attribute: String::from("max_battery_charge_level"),
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
handle.test.platform_config.replace(platform_config);
|
handle.test.platform_config.replace(Some(platform_config));
|
||||||
|
|
||||||
let base = path(HWMON_PREFIX).join("hwmon6");
|
let base = path(HWMON_PREFIX).join("hwmon6");
|
||||||
create_dir_all(&base).await.expect("create_dir_all");
|
create_dir_all(&base).await.expect("create_dir_all");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue