/* Function for executing an application timeout handler, either by calling it directly, or by passing an event to the app_scheduler.  */
static void timeout_handler_exec(timer_node_t *p_timer)
/* Function for executing an application timeout handler, either by calling it directly, or by passing an event to the app_scheduler.  */
static void timeout_handler_exec(timer_node_t *p_timer)
{
    if (m_evt_schedule_func != NULL)
    {
        uint32_t err_code = m_evt_schedule_func(p_timer->p_timeout_handler, p_timer->p_context);
        APP_ERROR_CHECK(err_code);
    }
    else
    {
        p_timer->p_timeout_handler(p_timer->p_context);
    }
}