UT330BUI/model/UT330.py
def restore_factory(self):

        """This command is given as a factory reset in the Windows software"""

        self._buffer = [0xab, 0xcd, 0x03, 0x20, 0xb0, 0xd7]

        self._write_buffer()

        # Now get the data from the buffer
        self._read_buffer(7)

        # Check the return code shows the data was correctly written
        if [171, 205, 4, 32, 0, 103, 117] != self._buffer:
            raise IOError("Error! Restore factory returned an error code.")
This command is given as a factory reset in the Windows software
This command is given as a factory reset in the Windows software
This command is given as a factory reset in the Windows software
def restore_factory(self):
        self._buffer = [0xab, 0xcd, 0x03, 0x20, 0xb0, 0xd7]
        self._write_buffer()
        self._read_buffer(7)
        if [171, 205, 4, 32, 0, 103, 117] != self._buffer:
            raise IOError("Error! Restore factory returned an error code.")
def restore_factory ( self ) : self . _buffer = [ 0xab , 0xcd , 0x03 , 0x20 , 0xb0 , 0xd7 ] self . _write_buffer ( ) self . _read_buffer ( 7 ) if [ 171 , 205 , 4 , 32 , 0 , 103 , 117 ] != self . _buffer : raise IOError ( "Error! Restore factory returned an error code." )
This command is given as a factory reset in the Windows software
This command is given as a factory reset in the Windows software
"""This command is given as a factory reset in the Windows software""" # Now get the data from the buffer # Check the return code shows the data was correctly written
self