Badger2040: Remove button release wait from clear.
@@ -14,10 +14,6 @@ namespace {
gpio_put(pimoroni::Badger2040::ENABLE_3V3, 1);
}
- bool get_current() {
- return gpio_get_all() & (0x1f << pimoroni::Badger2040::DOWN);
- }
-
bool any() const {
return state > 0;
}
@@ -285,11 +281,6 @@ mp_obj_t Badger2040_pressed_to_wake2(mp_obj_t self_in, mp_obj_t button) {
mp_obj_t Badger2040_clear_pressed_to_wake() {
button_wake_state.clear();
- while(button_wake_state.get_current()) {
-#ifdef MICROPY_EVENT_POLL_HOOK
-MICROPY_EVENT_POLL_HOOK
-#endif
- }
return mp_const_none;
}
