From f88147003c0cc4ae93e18aa3bc2d775d27349a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 29 Sep 2018 14:54:08 +0200 Subject: [PATCH] Repetier firmware reports fatal errors with another prefix --- src/octoprint/util/comm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index c8cd4a2ee..bee3e0837 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -2518,6 +2518,11 @@ class MachineCom(object): lower_line = line.lower() + if lower_line.startswith("fatal:"): + # hello Repetier firmware -_- + line = "Error:" + line + lower_line = line.lower() + if lower_line.startswith('error:') or line.startswith('!!'): if regex_minMaxError.match(line): # special delivery for firmware that goes "Error:x\n: Extruder switched off. MAXTEMP triggered !\n"