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=1, 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 = 1 , wIndex = wIndex , wValue = feature )
clear/disable a specific feature .