(self)
Reinitialise current device.
        Attempts to restore current configuration & alt settings.
        If this fails, will result in a device disconnect & reconnect, so you
        have to close current device and rediscover it (notified by a
        LIBUSB_ERROR_NOT_FOUND error code).
Reinitialise current device.
        Attempts to restore current configuration & alt settings.
        If this fails, will result in a device disconnect & reconnect, so you
        have to close current device and rediscover it (notified by a
        LIBUSB_ERROR_NOT_FOUND error code).
Reinitialise current device . Attempts to restore current configuration & alt settings . If this fails will result in a device disconnect & reconnect so you have to close current device and rediscover it ( notified by a LIBUSB_ERROR_NOT_FOUND error code ) .
def resetDevice(self):
        """
        Reinitialise current device.
        Attempts to restore current configuration & alt settings.
        If this fails, will result in a device disconnect & reconnect, so you
        have to close current device and rediscover it (notified by a
        LIBUSB_ERROR_NOT_FOUND error code).
        """
        result = libusb1.libusb_reset_device(self.__handle)
        if result:
            raise libusb1.USBError(result)
def resetDevice ( self ) : result = libusb1 . libusb_reset_device ( self . __handle ) if result : raise libusb1 . USBError ( result )