Thanks for the anwser, I'm curious about one more thing: the buffer we are talking about is the UART buffer right? Sending the package without flushing took about 5 times less time to realise than with flushing on. What other data is stored in that buffer? Would decreasing the size of the buffer to the size of frame decrease the time needed to send the package?