kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Badger2040: Fix input handling
Fixes input handling by clearing the button states to 0 when "wait_for_press".pull/252/head
rodzic
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();
|
||||
|
|
Ładowanie…
Reference in New Issue