doc: Fix K_ALERT_DEFINE in a code example
Add the missing 'max_num_pending_alerts' argument to the K_ALERT_DEFINE used in the "Signaling an Alert" code example. Signed-off-by: Stig Bjørlykke <stig.bjorlykke@nordicsemi.no>
This commit is contained in:
parent
0ee0752bec
commit
80f7d41f24
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ to indicate that a key press has occurred.
|
|||
|
||||
extern int my_alert_handler(struct k_alert *alert);
|
||||
|
||||
K_ALERT_DEFINE(my_alert, my_alert_handler);
|
||||
K_ALERT_DEFINE(my_alert, my_alert_handler, 10);
|
||||
|
||||
void keypress_interrupt_handler(void *arg)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue