Disable command queue?

Is there a way to disable queuing the g codes? Basically I making a program to send commands over the USB/serial and would like to receive the “OK” when each command has completed instead of a bunch of OK’s when the the batch of commands finishes.

Thanks!

Imported from wikidot

You can send M400 after each Gcode, that’s the only option to do this right now. M400 waits for the queue to be empty to answer “ok” so it would do what you want.

Thanks. I did play with M400 and it really didn’t do what I thought it would do (probably my own ignorance with g-code). I took the dangerous route and change the planner_queue_size down to 4. Since I’m doing simple movements, it’s close enough to get enough feed back to display about where within the gcode I’m running.