From 9368b659a763faa4e45b657ea71922b651751aa5 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Sun, 23 Oct 2022 12:08:03 +0200 Subject: [PATCH] Revert "Revert "examples/timer_gpio: fix initialization of timer notification"" This reverts commit 539b7363d08efcd37c0677ec62832d4e604e5050. --- examples/timer_gpio/timer_gpio_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/timer_gpio/timer_gpio_main.c b/examples/timer_gpio/timer_gpio_main.c index a38e5acb1..315963aa2 100644 --- a/examples/timer_gpio/timer_gpio_main.c +++ b/examples/timer_gpio/timer_gpio_main.c @@ -182,6 +182,7 @@ static int timer_gpio_daemon(int argc, char *argv[]) notify.event.sigev_notify = SIGEV_SIGNAL; notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_GPIO_SIGNO; notify.event.sigev_value.sival_ptr = NULL; + notify.oneshot = false; ret = ioctl(fd_timer, TCIOC_NOTIFICATION, (unsigned long)((uintptr_t)¬ify));