Serial Communication and Blocking vs NonBlocking Functions

The code I'm using is:

Some of the code...

It is not necessary to set moving_n flags to true, They are not checked before being set, so it doesn't matter if they get set somewhere else to Tuesday.

so it should never jump out of the while loop unless all motors are at their final position.

So, we need to look at the rest of the code. One possibility that might be causing issues would be sending the string followed by \n\r or two \n's.