def set_timeout(self, timeout_in_sec): """Change the timeout value""" Master.set_timeout(self, timeout_in_sec) self._serial.timeout = timeout_in_sec
def set_timeout(self, timeout_in_sec, use_sw_timeout=False): """Change the timeout value""" Master.set_timeout(self, timeout_in_sec) self._serial.timeout = timeout_in_sec # Use software based timeout in case the timeout functionality provided by the serial port is unreliable self.use_sw_timeout = use_sw_timeout