/* Function for performing the Local DB apply procedure if it is pending on any connections.  */
static void apply_pending_flags_check(void)
/* Function for performing the Local DB apply procedure if it is pending on any connections.  */
static void apply_pending_flags_check(void)
{
    sdk_mapped_flags_t apply_pending_flags;
    apply_pending_flags = ble_conn_state_user_flag_collection(m_gcm.flag_id_local_db_apply_pending);
    if (sdk_mapped_flags_any_set(apply_pending_flags))
    {
        sdk_mapped_flags_key_list_t conn_handle_list;
        conn_handle_list = ble_conn_state_conn_handles();
        for (uint32_t i = 0; i < conn_handle_list.len; i++)
        {
            if (ble_conn_state_user_flag_get(conn_handle_list.flag_keys[i], m_gcm.flag_id_local_db_apply_pending))
            {
                local_db_apply_in_evt(conn_handle_list.flag_keys[i]);
            }
        }
    }
}