Skip to content

Commit

Permalink
Introduce a delay after each step of initialization
Browse files Browse the repository at this point in the history
Introduce a short delay after each step of the initialization sequence.
This is a try to fix a problem with failing device initialization,
seen on some KVM switches.

References #161
  • Loading branch information
X3n0m0rph59 committed Oct 4, 2022
1 parent fc9f3bf commit 646692f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eruption/src/hwdevices/roccat_vulcan_1xx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use log::*;
use parking_lot::{Mutex, RwLock};
use std::collections::HashMap;
use std::sync::Arc;
use std::thread;
use std::time::Duration;
use std::{any::Any, mem::size_of};

use crate::constants;
Expand Down Expand Up @@ -464,6 +466,8 @@ impl RoccatVulcan1xx {

Err(_) => return Err(HwDeviceError::InvalidResult {}.into()),
}

thread::sleep(Duration::from_millis(70));
}
}
}
Expand Down

0 comments on commit 646692f

Please sign in to comment.