/**@brief Function for handling the Sensor Contact Detected timer time-out. * * @details This function will be called each time the Sensor Contact Detected timer expires. * * @param[in] xTimer Handler to the timer that called this function. * You may get identifier given to the function xTimerCreate using pvTimerGetTimerID. */ static void sensor_contact_detected_timeout_handler(TimerHandle_t xTimer) { static bool sensor_contact_detected = false; UNUSED_PARAMETER(xTimer); sensor_contact_detected = !sensor_contact_detected; ble_hrs_sensor_contact_detected_update(&m_hrs, sensor_contact_detected); }
/**@brief Function for handling the Sensor Contact Detected timer timeout. * * @details This function will be called each time the Sensor Contact Detected timer expires. * * @param[in] p_context Pointer used for passing some arbitrary information (context) from the * app_start_timer() call to the timeout handler. */ static void sensor_contact_detected_timeout_handler(void * p_context) { static bool sensor_contact_detected = false; UNUSED_PARAMETER(p_context); sensor_contact_detected = !sensor_contact_detected; ble_hrs_sensor_contact_detected_update(&m_hrs, sensor_contact_detected); }