mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Added extra timeout when not detecting baudrate through bootloader
This commit is contained in:
parent
8676f3db40
commit
e69747577b
1 changed files with 1 additions and 0 deletions
|
@ -313,6 +313,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||||
if self._serial is None:
|
if self._serial is None:
|
||||||
try:
|
try:
|
||||||
self._serial = serial.Serial(str(self._serial_port), baud_rate, timeout = 3, writeTimeout = 10000)
|
self._serial = serial.Serial(str(self._serial_port), baud_rate, timeout = 3, writeTimeout = 10000)
|
||||||
|
time.sleep(10)
|
||||||
except serial.SerialException:
|
except serial.SerialException:
|
||||||
Logger.log("d", "Could not open port %s" % self._serial_port)
|
Logger.log("d", "Could not open port %s" % self._serial_port)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue