Skip to content

Commit 9914432

Browse files
committed
Set extruder index
For the command `set_toolhead_temperature`, assign index 0.
1 parent bb76f11 commit 9914432

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mbotmake2/transformers/toolpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def visit_ToolheadTemperature(self, _, visited_children):
7474
print(f"Overriding extruder temperature: {self.extruder_temperature} -> {temperature}")
7575
self.extruder_temperature = temperature
7676

77-
self.commands.append(Command("set_toolhead_temperature", {"temperature": temperature}))
77+
self.commands.append(Command("set_toolhead_temperature", {"temperature": temperature, "index": 0}))
7878

7979
def visit_Move(self, node, visited_children) -> None:
8080
_, (coords,) = visited_children

0 commit comments

Comments
 (0)