Badger2040: Fix input handling
Fixes input handling by clearing the button states to 0 when "wait_for_press".
This commit is contained in:
parent
07c62a849a
commit
669e96598d
|
@ -291,6 +291,7 @@ namespace pimoroni {
|
|||
}
|
||||
|
||||
void Badger2040::wait_for_press() {
|
||||
_button_states = 0;
|
||||
update_button_states();
|
||||
while(_button_states == 0) {
|
||||
update_button_states();
|
||||
|
|
Loading…
Reference in New Issue