I’m currently using gcode_shell_command
and RUN_SHELL_COMMAND
to execute a shell command from the gcode. However, this shell command is executed way, way before commands that come before it in the gcode file are processed by the mcu. It seems like the shell command is executed after the preceding gcode is sent to the mcu’s input queue, rather than when that gcode is (expected to be) actually processed on the mcu.
Is there some way to synchronize these somehow?
Or perhaps approximated within a second or so?