Fix the broken pipe error

This commit is contained in:
Luke D. Jones
2024-02-02 23:26:41 +13:00
parent c94eaa473e
commit 086bbd0908
7 changed files with 42 additions and 14 deletions

View File

@@ -133,6 +133,7 @@ fn aura_power1(states: &mut SystemState, ui: &mut Ui) {
.aura()
.set_led_power((options, enable))
.map_err(|err| {
dbg!(&err);
states.error = Some(err.to_string());
})
.ok();
@@ -183,6 +184,7 @@ fn aura_power1(states: &mut SystemState, ui: &mut Ui) {
.aura()
.set_led_power((options, enable))
.map_err(|err| {
dbg!(&err);
states.error = Some(err.to_string());
})
.ok();
@@ -248,6 +250,7 @@ fn aura_power2(states: &mut SystemState, ui: &mut Ui) {
.aura()
.set_led_power((options, enable))
.map_err(|err| {
dbg!(&err);
states.error = Some(err.to_string());
})
.ok();