Badger2040: Fix input handling

Fixes input handling by clearing the button states to 0 when "wait_for_press".
This commit is contained in:
Phil Howard 2022-02-21 20:17:09 +00:00
parent 07c62a849a
commit 669e96598d
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ namespace pimoroni {
}
void Badger2040::wait_for_press() {
_button_states = 0;
update_button_states();
while(_button_states == 0) {
update_button_states();