Move led_writer to a main loop due to strange mpsc behaviour

This commit is contained in:
Luke
2020-06-11 20:09:18 +12:00
parent 93c6b28409
commit bf3588e516
10 changed files with 65 additions and 63 deletions

View File

@@ -174,13 +174,13 @@ impl LaptopBase {
aura_command
.send(AuraCommand::BrightInc)
.await
.unwrap_or_else(|_| {});
.unwrap_or_else(|err| warn!("LedBrightUp: {}", err));
}
GX502Keys::LedBrightDown => {
aura_command
.send(AuraCommand::BrightDec)
.await
.unwrap_or_else(|_| {});
.unwrap_or_else(|err| warn!("LedBrightDown: {}", err));
}
GX502Keys::AuraNext => {
aura_command