From 1de94912fdbbc828bde9ad905f9b061cabd44aa5 Mon Sep 17 00:00:00 2001 From: Giulio Moro Date: Tue, 1 Oct 2024 18:06:44 +0000 Subject: [PATCH] bela-cape-btn: fixed when not EDGE --- resources/tools/bela-cape-btn/bela-cape-btn.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/resources/tools/bela-cape-btn/bela-cape-btn.c b/resources/tools/bela-cape-btn/bela-cape-btn.c index 8500b3647..bf42e4a10 100644 --- a/resources/tools/bela-cape-btn/bela-cape-btn.c +++ b/resources/tools/bela-cape-btn/bela-cape-btn.c @@ -345,12 +345,9 @@ int run(void) int fd = gpio_open(BUTTON_PIN); -#ifdef EDGE struct pollfd pfd[1]; - pfd[0].fd = fd; pfd[0].events = POLLPRI; -#endif timestamp_ms_t pressed_at = 0; printf("Monitoring pin `%d` (%s), will execute `%s` on click and `%s` on hold (>%dms). Button is pressed when pin is %s...\n", BUTTON_PIN,