/* Function for handling the RR interval timer timeout. 
This function will be called each time the RR interval timer expires. */
static void rr_interval_timeout_handler(void *p_context)
/* Function for handling the RR interval timer timeout. 
This function will be called each time the RR interval timer expires. */
static void rr_interval_timeout_handler(void *p_context)
{
    UNUSED_PARAMETER(p_context);
    if (m_rr_interval_enabled)
    {
        uint16_t rr_interval;
        rr_interval = (uint16_t)sensorsim_measure(&m_rr_interval_sim_state,
                                                      &m_rr_interval_sim_cfg);
        ble_hrs_rr_interval_add(&m_hrs, rr_interval);
    }
}