mirror of
https://codeberg.org/Fl1tzi/microdeck.git
synced 2024-05-20 03:21:04 +00:00
fix issues with non existant buttons
This commit is contained in:
parent
e86cc5ae22
commit
b15fad561e
|
@ -251,7 +251,7 @@ async fn init_devices(
|
||||||
// if the index of the button is higher than the button count
|
// if the index of the button is higher than the button count
|
||||||
if button_count < button.index {
|
if button_count < button.index {
|
||||||
warn!("This button does not exist on device",);
|
warn!("This button does not exist on device",);
|
||||||
continue 'device;
|
continue;
|
||||||
}
|
}
|
||||||
// create a channel for the module to receive device events
|
// create a channel for the module to receive device events
|
||||||
let (button_sender, button_receiver) = mpsc::channel(4);
|
let (button_sender, button_receiver) = mpsc::channel(4);
|
||||||
|
|
Loading…
Reference in a new issue