Extra logging for aura

This commit is contained in:
Luke D. Jones
2024-03-23 11:27:20 +13:00
parent 4e778a3d28
commit 193f9dfa1e
4 changed files with 5 additions and 7 deletions

View File

@@ -60,6 +60,7 @@ pub struct CtrlKbdLed {
impl CtrlKbdLed {
pub fn find_all(data: &LaptopLedData) -> Result<Vec<Self>, RogError> {
info!("Searching for all Aura devices");
let mut devices = Vec::new();
let mut enumerator = udev::Enumerator::new().map_err(|err| {
@@ -91,6 +92,7 @@ impl CtrlKbdLed {
devices.push(dev);
}
}
info!("Found {} Aura devices", devices.len());
Ok(devices)
}
@@ -126,7 +128,6 @@ impl CtrlKbdLed {
let mut config_init = AuraConfig::new_with(prod_id);
// config_init.set_filename(prod_id);
let mut config_loaded = config_init.clone().load();
config_loaded.set_filename(prod_id);
// update the initialised data with what we loaded from disk
for mode in &mut config_init.builtins {
// update init values from loaded values if they exist