Skip to content

Commit

Permalink
bela-cape-btn: fixed when not EDGE
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliomoro committed Oct 24, 2024
1 parent 6c1f87d commit 1de9491
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions resources/tools/bela-cape-btn/bela-cape-btn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1de9491

Please sign in to comment.