More logging

This commit is contained in:
Luke
2020-04-19 10:25:50 +12:00
parent cfddb6077a
commit 221b230acb
6 changed files with 55 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
use crate::aura::BuiltInModeByte;
use crate::core::{Backlight, RogCore};
use crate::error::AuraError;
use log::info;
pub fn match_laptop() -> Result<Box<dyn Laptop>, AuraError> {
let dmi = sysfs_class::DmiId::default();
@@ -136,11 +137,11 @@ impl Laptop for LaptopGX502GW {
rogcore.suspend();
}
GX502GWKeys::AirplaneMode => {
rogcore.toggle_airplane_mode()?;
rogcore.toggle_airplane_mode();
}
_ => {
if key_byte != 0 {
dbg!(&key_byte);
info!("Unmapped key: {}", &key_byte);
}
}
}