Repetier firmware reports fatal errors with another prefix

This commit is contained in:
Gina Häußge committed 2018-09-29 14:54:39 +02:00
1 parent bbbe85f737
commit f88147003c
1 file changed
+5
+5
View File
@@ -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"