mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Merge pull request #4825 from Frischid/patch-2
Update AutoDetectBaudJob.py
This commit is contained in:
commit
f7ffb3ae69
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class AutoDetectBaudJob(Job):
|
|||
line = serial.readline()
|
||||
if b"ok" in line and b"T:" in line:
|
||||
successful_responses += 1
|
||||
if successful_responses >= 3:
|
||||
if successful_responses >= 1:
|
||||
self.setResult(baud_rate)
|
||||
Logger.log("d", "Detected baud rate {baud_rate} on serial {serial} on retry {retry} with after {time_elapsed:0.2f} seconds.".format(
|
||||
serial = self._serial_port, baud_rate = baud_rate, retry = retry, time_elapsed = time() - start_timeout_time))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue