doc: kernel: fix braces in code example
Add missing closing brace to `k_poll()` loop example. Signed-off-by: David Schneider <david.schneider@chargepoint.com>
This commit is contained in:
parent
e2cdd92a52
commit
0e830b3f10
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ to :c:macro:`K_POLL_STATE_NOT_READY` by the user.
|
|||
} else if (events[3].state == K_POLL_STATE_PIPE_DATA_AVAILABLE) {
|
||||
ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
|
||||
// handle data
|
||||
}
|
||||
events[0].state = K_POLL_STATE_NOT_READY;
|
||||
events[1].state = K_POLL_STATE_NOT_READY;
|
||||
events[2].state = K_POLL_STATE_NOT_READY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue