Properly set full defaults for LED power

This commit is contained in:
Luke D. Jones
2022-07-21 14:56:30 +12:00
parent 02fb7addf4
commit 22605e57cc
2 changed files with 38 additions and 3 deletions

View File

@@ -306,7 +306,7 @@ impl CtrlKbdLed {
Ok(())
}
fn find_led_node(id_product: &str) -> Result<String, RogError> {
pub(crate) fn find_led_node(id_product: &str) -> Result<String, RogError> {
let mut enumerator = udev::Enumerator::new().map_err(|err| {
warn!("{}", err);
RogError::Udev("enumerator failed".into(), err)