Browse Source

Added extra timeout when not detecting baudrate through bootloader

Jaime van Kessel 8 years ago
parent
commit
e69747577b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/USBPrinting/USBPrinterOutputDevice.py

+ 1 - 0
plugins/USBPrinting/USBPrinterOutputDevice.py

@@ -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