mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Improvements to service init
This commit is contained in:
@@ -9,7 +9,7 @@ use rog_client::{
|
||||
};
|
||||
use std::io::Write;
|
||||
|
||||
static VERSION: &str = "0.14.3";
|
||||
static VERSION: &str = "0.14.4";
|
||||
|
||||
#[derive(Options)]
|
||||
struct CLIStart {
|
||||
|
||||
@@ -67,7 +67,7 @@ impl RogCore {
|
||||
|
||||
if let Err(err) = dev_handle.set_auto_detach_kernel_driver(true) {
|
||||
warn!("Auto-detach kernel driver failed: {:?}", err);
|
||||
let mut fail_count = 10;
|
||||
let mut fail_count = 5;
|
||||
while fail_count > 0 {
|
||||
warn!("Trying device reset");
|
||||
fail_count -= 1;
|
||||
@@ -84,7 +84,7 @@ impl RogCore {
|
||||
|
||||
if let Err(err) = dev_handle.claim_interface(interface) {
|
||||
warn!("Could not claim keyboard device interface: {:?}", err);
|
||||
let mut fail_count = 10;
|
||||
let mut fail_count = 5;
|
||||
while fail_count > 0 {
|
||||
warn!("Sleeping");
|
||||
fail_count -= 1;
|
||||
|
||||
Reference in New Issue
Block a user