interrupt loop while receiving data

This really makes sense, as an additional Serial.read() command without any allocation empties the buffer and makes it work in a very inadequate way :frowning:

Up to me the if statement makes no sense, as it's no terminating command. I really want the arduino to stop doing the stuff within the loop until the new values are sent to the arduino. I just cann't find any good solution, also not on the internet, although this must be a daily problem :sweat_smile: