📅Update: 2020/09/18
This command causes all GCode processing to pause and wait in a loop until all moves in the planner are completed.
M400
Wait for moves to finish before turning off the spindle
M400M5 ; Without M400 this happens too soon