🐛 Don't trigger error handling on autodetect failure

See #3627
This commit is contained in:
Gina Häußge committed 2020-07-08 14:15:09 +02:00
1 parent 87cd6de96c
commit 27191f5202
1 file changed
+1 -2
+1 -2
View File
@@ -2875,8 +2875,7 @@ class MachineCom(object):
eventManager().fire(Events.ERROR, {"error": self.getErrorString(), "reason": reason})
if close:
if self._send_m112_on_error and not self.isSdPrinting() and reason not in ("connection",
"autodetect_baudrate",
"autodetect_port"):
"autodetect"):
self._trigger_emergency_stop(close=False)
self.close(is_error=True)