Update AutoDetectBaudJob.py

Editing the file like this solved my problem connecting to German RepRap Neo
This commit is contained in:
Frischid 2018-11-17 21:45:35 +01:00 committed by GitHub
parent f10bd28c4a
commit 1c54319b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,9 +71,9 @@ class AutoDetectBaudJob(Job):
while timeout_time > time():
line = serial.readline()
if b"ok " in line and b"T:" in line:
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))