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<number> in order to qualify.

Should fix #15729
This commit is contained in:
Remco Burema 2023-06-16 09:07:57 +02:00
parent 2670a22c0f
commit fa8e48152e

View file

@ -338,8 +338,8 @@ class PauseAtHeight(Script):
nbr_negative_layers += 1 nbr_negative_layers += 1
#Track the latest printing temperature in order to resume at the correct temperature. #Track the latest printing temperature in order to resume at the correct temperature.
if line.startswith("T"): if re.match("T(\d*)", line):
current_t = self.getValue(line, "T", current_t) current_t = self.getValue(line, "T")
m = self.getValue(line, "M") m = self.getValue(line, "M")
if m is not None and (m == 104 or m == 109) and self.getValue(line, "S") is not None: if m is not None and (m == 104 or m == 109) and self.getValue(line, "S") is not None:
extruder = current_t extruder = current_t