def close(self):
        """
        close the interface
        """
        logging.debug("closing interface")
        self.closed = True
        self.read_sem.release()
        self.thread.join()
        usb.util.dispose_resources(self.dev)
def close ( self ) : logging . debug ( "closing interface" ) self . closed = True self . read_sem . release ( ) self . thread . join ( ) usb . util . dispose_resources ( self . dev )
close the interface