rog-platform: additional check against manufacturer attr

Should close #242
This commit is contained in:
Luke D. Jones
2022-08-22 09:01:08 +12:00
parent 45641c928d
commit fa1feaf9d9
4 changed files with 32 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
use std::path::PathBuf;
use log::warn;
use log::{info, warn};
use serde::{Deserialize, Serialize};
use zvariant::Type;
@@ -41,6 +41,7 @@ impl AsusPlatform {
warn!("{}", err);
PlatformError::Udev("scan_devices failed".into(), err)
})? {
info!("Found platform support at {:?}", device.sysname());
return Ok(Self {
path: device.syspath().to_owned(),
});