doc: fix the example code typo
This commit fix the typo of k_poll_signal_raise() api example code Signed-off-by: Harry Jiang <explora26@gmail.com>
This commit is contained in:
parent
bd7387947e
commit
b0d2a7add7
1 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ pass extra information to the thread waiting on the event.
|
|||
struct k_poll_event events[1] = {
|
||||
K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL,
|
||||
K_POLL_MODE_NOTIFY_ONLY,
|
||||
&signal);
|
||||
&signal),
|
||||
};
|
||||
|
||||
k_poll(events, 1, K_FOREVER);
|
||||
|
@ -239,7 +239,7 @@ If the signal is to be polled in a loop, *both* its event state and its
|
|||
struct k_poll_event events[1] = {
|
||||
K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL,
|
||||
K_POLL_MODE_NOTIFY_ONLY,
|
||||
&signal);
|
||||
&signal),
|
||||
};
|
||||
|
||||
for (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue