"OK" message is received even before the movement is complete. Any idea, how to make sure that this is received only when the movement is completed ? Facing issue in circle of larger radius. It seems motor is still running but OK message is received .
I actually want "OK" message to receive only when movement is completed.
void process_next_command() {
// This method in marlin actually process the command and at last it sends "OK" message . How to make sure "ok_to_send();" is called only when the movement is complete without hindering any next command in queue.
...........
ok_to_send();
}