From e2ce72200e858622c81f7db3d987f1753481ed27 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sat, 17 Jul 2021 00:52:42 +0200 Subject: [PATCH] Fix buttons --- buttons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } }