diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index 8b872ce738..e0bcff2e70 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -546,7 +546,12 @@ class uploader(object): if self.baudrate_flightstack_idx >= len(self.baudrate_flightstack): return False - self.port.baudrate = self.baudrate_flightstack[self.baudrate_flightstack_idx] + try: + self.port.baudrate = self.baudrate_flightstack[self.baudrate_flightstack_idx] + except serial.SerialException: + # Sometimes _configure_port fails + time.sleep(0.04) + pass return True