cp2004 / OctoPrint-GCodeMacros

Configure custom gcode macros you can use anywhere!
https://plugins.octoprint.org/plugins/gcode_macro
GNU Affero General Public License v3.0
7 stars 2 forks source link

Macro with gcode and other macros running out of order #9

Closed napter closed 2 years ago

napter commented 2 years ago

I have Macro A which looks like this:

some Gcode @MacroB someGcode @MacroC

But it gets sent to the printer out of order. The GCode within the script executes first and the referenced macros are tacked on to the end like this:

Some Gcode Some Gcode @MacroB @MacroC

cp2004 commented 2 years ago

Hmm, at first I didn't believe this but after testing I can indeed reproduce the issue...

I'll take a look and see what I can do.

Edited to add: I can't quite believe I made the code do that!

cp2004 commented 2 years ago

That should now be fixed with 1.1.2.