(dev, feature, recipient = None)
r"""Clear/disable a specific feature.

    dev is the Device object to which the request will be
    sent to.

    feature is the feature you want to disable.

    The recipient can be None (on which the status will be queried
    from the device), an Interface or Endpoint descriptors.
r"""Clear/disable a specific feature.
r Clear / disable a specific feature .
def clear_feature(dev, feature, recipient = None):
    r"""Clear/disable a specific feature.

    dev is the Device object to which the request will be
    sent to.

    feature is the feature you want to disable.

    The recipient can be None (on which the status will be queried
    from the device), an Interface or Endpoint descriptors.
    """
    if feature == ENDPOINT_HALT:
        dev.clear_halt(recipient)
    else:
        bmRequestType, wIndex = _parse_recipient(recipient, util.CTRL_OUT)
        dev.ctrl_transfer(bmRequestType = bmRequestType,
                          bRequest = 0x01,
                          wIndex = wIndex,
                          wValue = feature)
def clear_feature ( dev , feature , recipient = None ) : if feature == ENDPOINT_HALT : dev . clear_halt ( recipient ) else : bmRequestType , wIndex = _parse_recipient ( recipient , util . CTRL_OUT ) dev . ctrl_transfer ( bmRequestType = bmRequestType , bRequest = 0x01 , wIndex = wIndex , wValue = feature )