Improvements to service init

This commit is contained in:
Luke
2020-07-07 16:14:18 +12:00
parent c6c934bf40
commit ae9d0463da
43 changed files with 190 additions and 13 deletions

View File

@@ -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 {

View File

@@ -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;