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:
Stig Bjørlykke 2018-03-08 22:08:00 +01:00 committed by Anas Nashif
commit 80f7d41f24

View file

@ -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)
{