Commit 7d8c0bdc authored by Guillaume Seguin's avatar Guillaume Seguin

Increase serial read timeout for initial connection loop

parent c5475def
......@@ -134,6 +134,8 @@ class printcore():
return not self.stop_read_thread and self.printer and self.printer.isOpen()
def _listen_until_online(self):
orig_timeout = self.printer.timeout
self.printer.timeout = 3
while not self.online and self._listen_can_continue():
self._send("M105")
while self._listen_can_continue():
......@@ -144,6 +146,7 @@ class printcore():
if self.onlinecb:
try: self.onlinecb()
except: pass
self.printer.timeout = orig_timeout
self.online = True
return
time.sleep(0.25)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment