mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 02:06:01 +08:00
Added extra timeout when not detecting baudrate through bootloader
This commit is contained in:
parent
8676f3db40
commit
e69747577b
@ -313,6 +313,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||
if self._serial is None:
|
||||
try:
|
||||
self._serial = serial.Serial(str(self._serial_port), baud_rate, timeout = 3, writeTimeout = 10000)
|
||||
time.sleep(10)
|
||||
except serial.SerialException:
|
||||
Logger.log("d", "Could not open port %s" % self._serial_port)
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user