examples/timer: fix timer notification asignment
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
7d10751037
commit
b207387d48
@ -217,7 +217,8 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
printf("Attach timer handler\n");
|
||||
|
||||
notify.pid = getpid();
|
||||
notify.pid = getpid();
|
||||
notify.periodic = true;
|
||||
|
||||
notify.event.sigev_notify = SIGEV_SIGNAL;
|
||||
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_SIGNO;
|
||||
|
@ -176,7 +176,9 @@ static int timer_gpio_daemon(int argc, char *argv[])
|
||||
|
||||
printf("Configure the timer notification.\n");
|
||||
|
||||
notify.pid = getpid();
|
||||
notify.pid = getpid();
|
||||
notify.periodic = true;
|
||||
|
||||
notify.event.sigev_notify = SIGEV_SIGNAL;
|
||||
notify.event.sigev_signo = CONFIG_EXAMPLES_TIMER_GPIO_SIGNO;
|
||||
notify.event.sigev_value.sival_ptr = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user