Skip to content

Commit

Permalink
🐛 Fix plugin eating all @ commands
Browse files Browse the repository at this point in the history
Solves #3
  • Loading branch information
cp2004 committed Aug 30, 2021
1 parent f233ecc commit 56dbb16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion octoprint_gcode_macro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def gcode_queueing(
**kwargs,
):
if command.startswith("@"):
return self.render_macro(command)
commands = self.render_macro(command)
if commands:
return commands

def render_macro(self, command, level=0):
"""
Expand Down

0 comments on commit 56dbb16

Please sign in to comment.