Small fixxes to functionality

- Fixed return of rog-core in client mode
- Fixed writing of customised builtin LED modes
This commit is contained in:
Luke
2020-05-04 15:33:41 +12:00
parent a0d256cbef
commit 62a613a312
9 changed files with 36 additions and 25 deletions

View File

@@ -36,7 +36,6 @@ impl AuraDbusWriter {
if let Ok(stop) = msg.read1::<bool>() {
if stop {
if let Ok(mut lock) = stopper.lock() {
println!("SHOULD STOP");
*lock = true;
}
}
@@ -77,7 +76,7 @@ impl AuraDbusWriter {
thread::sleep(Duration::from_millis(self.block_time));
if let Ok(lock) = self.stop.try_lock() {
if *lock {
panic!("Stopping!");
panic!("Go signal to stop!");
}
}
Ok(())