fix issues with non existant buttons

This commit is contained in:
Fl1tzi 2023-04-05 00:25:51 +02:00
parent e86cc5ae22
commit b15fad561e

View file

@ -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);