Fix remove the leftover initial config writes on new() for some controllers

Closes #320
This commit is contained in:
Luke D. Jones
2023-01-24 10:13:09 +13:00
parent cb5856c4dc
commit 5600c51ba0
10 changed files with 135 additions and 105 deletions

View File

@@ -113,7 +113,7 @@ impl From<&AuraPowerConfig> for AuraPowerDev {
}
}
#[derive(Deserialize, Serialize)]
#[derive(Deserialize, Serialize, Debug)]
// #[serde(default)]
pub struct AuraConfig {
pub brightness: LedBrightness,
@@ -232,7 +232,6 @@ impl AuraConfig {
}
}
}
config.write();
config
}