Badger2040: Fix input handling

Fixes input handling by clearing the button states to 0 when "wait_for_press".
pull/252/head
Phil Howard 2022-02-21 20:17:09 +00:00
rodzic 07c62a849a
commit 669e96598d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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