/* Funtion for initializing a BLE Connection State user flag.  */
static void flag_id_init(ble_conn_state_user_flag_id_t *p_flag_id)
/* Funtion for initializing a BLE Connection State user flag.  */
static void flag_id_init(ble_conn_state_user_flag_id_t *p_flag_id)
{
    if (*p_flag_id == BLE_CONN_STATE_USER_FLAG_INVALID)
    {
        *p_flag_id = ble_conn_state_user_flag_acquire();
    }
}