Fix buttons

main
Valentin Ochs 2021-07-17 00:52:42 +02:00
parent d0545ec844
commit e2ce72200e
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}