From fa8e48152ee3189ba6c290119a0bb96c5470810b Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Fri, 16 Jun 2023 09:07:57 +0200 Subject: [PATCH] Pause-at-height: Under rare circumstances T might not be an extruder switch. Some printers accept commands like TIMELAPSE_TAKE_FRAME or whatever, after all. Make it explciti that a line should start with T in order to qualify. Should fix #15729 --- plugins/PostProcessingPlugin/scripts/PauseAtHeight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py index d8bc3ee414..3d85740bd4 100644 --- a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py +++ b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py @@ -338,8 +338,8 @@ class PauseAtHeight(Script): nbr_negative_layers += 1 #Track the latest printing temperature in order to resume at the correct temperature. - if line.startswith("T"): - current_t = self.getValue(line, "T", current_t) + if re.match("T(\d*)", line): + current_t = self.getValue(line, "T") m = self.getValue(line, "M") if m is not None and (m == 104 or m == 109) and self.getValue(line, "S") is not None: extruder = current_t