@staticmethod
def _connection_status_flag(flags, flag_to_find):
    """
        Is the given flag in the connection status flags?

        flags -- the 'flags' parameter returned by ble_evt_connection_status.
        flag_to_find -- the flag to look for in flags.

        Returns true if flag_to_find is in flags. Returns false otherwise.
        """
    return flags & flag_to_find == flag_to_find
