diff --git a/buttons.c b/buttons.c index bbf2549..1c564d9 100644 --- a/buttons.c +++ b/buttons.c @@ -19,6 +19,7 @@ void buttons_setup() { SETUP(OPEN); SETUP(CLOSE); #undef SETUP + buttons_release(); } static uint32_t open_ticks = 0; @@ -55,7 +56,7 @@ void buttons_tick(void) { close_ticks--; if (!close_ticks) { printf("Release close"); - gpio_set(OPEN_PORT, CLOSE_BUTTON); + gpio_set(CLOSE_PORT, CLOSE_BUTTON); } } }