mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Updated logging & resuffled auto baud list to improve speed
This commit is contained in:
parent
631c02bf2c
commit
51415a0c53
1 changed files with 2 additions and 1 deletions
|
@ -273,6 +273,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
||||||
else:
|
else:
|
||||||
if not self.setBaudRate(baud_rate):
|
if not self.setBaudRate(baud_rate):
|
||||||
continue # Could not set the baud rate, go to the next
|
continue # Could not set the baud rate, go to the next
|
||||||
|
Logger.log("d","Attempting to connect to printer with serial %s on baud rate %s", self._serial_port, baud_rate)
|
||||||
time.sleep(1.5) # Ensure that we are not talking to the bootloader. 1.5 sec seems to be the magic number
|
time.sleep(1.5) # Ensure that we are not talking to the bootloader. 1.5 sec seems to be the magic number
|
||||||
sucesfull_responses = 0
|
sucesfull_responses = 0
|
||||||
timeout_time = time.time() + 5
|
timeout_time = time.time() + 5
|
||||||
|
@ -609,7 +610,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
||||||
## Create a list of baud rates at which we can communicate.
|
## Create a list of baud rates at which we can communicate.
|
||||||
# \return list of int
|
# \return list of int
|
||||||
def _getBaudrateList(self):
|
def _getBaudrateList(self):
|
||||||
ret = [250000, 230400, 115200, 57600, 38400, 19200, 9600]
|
ret = [115200, 250000, 230400, 57600, 38400, 19200, 9600]
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def _onFirmwareUpdateComplete(self):
|
def _onFirmwareUpdateComplete(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue