Reload asusd.ron if changed

This commit is contained in:
Luke D. Jones
2024-01-22 21:54:19 +13:00
parent 006fb632c4
commit 86cbef83b6
9 changed files with 94 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ use serde_derive::{Deserialize, Serialize};
const CONFIG_FILE: &str = "asusd.ron";
#[derive(Deserialize, Serialize, Default, Debug)]
#[derive(Deserialize, Serialize, Default, Debug, PartialEq, PartialOrd)]
pub struct Config {
/// Save charge limit for restoring on boot/resume
pub charge_control_end_threshold: u8,