Badger2040: Fix input handling
Fixes input handling by clearing the button states to 0 when "wait_for_press".
@@ -291,6 +291,7 @@ namespace pimoroni {
}
void Badger2040::wait_for_press() {
+ _button_states = 0;
update_button_states();
while(_button_states == 0) {
update_button_states();
