From a3b3fbe2691bf3092f3fe57c81c4410d4f963584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 26 Apr 2018 11:00:29 +0200 Subject: [PATCH] Add some more strings to the known error classes "Missing linenumber" is apparently also an option we want to recognize as non critical error, and while we are at it let's make sure we also capture "linenumber" without a space for resend request communication errors, just in case firmware devs add some variance here. --- src/octoprint/util/comm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index c91902050..e6600c208 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -2370,9 +2370,12 @@ class MachineCom(object): return False - _recoverable_communication_errors = ("no line number with checksum",) + _recoverable_communication_errors = ("no line number with checksum", + "missing linenumber") _resend_request_communication_errors = ("line number", # since this error class get's checked after recoverable # communication errors, we can use this broad term here + "linenumber", # since this error class get's checked after recoverable + # communication errors, we can use this broad term here "checksum", # since this error class get's checked after recoverable # communication errors, we can use this broad term here "format error",