Skip to content

Commit

Permalink
fix tool change gcode being added as comment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyEveritt committed Jul 27, 2021
1 parent a3f22e7 commit 7b926fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ASMBL_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ def tool_change(self, layer, prev_layer):
return # no need to add a tool change
first_gcode = layer.gcode.split('\n')[1]
if first_gcode[0] != 'T':
self.merged_gcode_script += self.last_additive_tool + '\n'
self.merged_gcode_script += f"\n{self.last_additive_tool}\n"
elif type(layer) == CamGcodeLayer:
self.merged_gcode_script += layer.tool + '\n'
self.merged_gcode_script += f"\n{layer.tool}\n"

def create_output_file(self, gcode, folder_path="output/", relative_path=True):
""" Saves the file to the output folder """
Expand Down

0 comments on commit 7b926fd

Please sign in to comment.