def reset_script(self):
        """Clear any partially received script."""

        self.remote_bridge.status = BRIDGE_STATUS.IDLE
        self.remote_bridge.error = 0
        self.remote_bridge.parsed_script = None
        self._device.script = bytearray()

        return [0]
def reset_script ( self ) : self . remote_bridge . status = BRIDGE_STATUS . IDLE self . remote_bridge . error = 0 self . remote_bridge . parsed_script = None self . _device . script = bytearray ( ) return [ 0 ]
Clear any partially received script.