Hi everybody,
I'm working with the serial communication port and even though I'm flushing both the buffers (either the receiver and the transmitter) when I go to read the answer to the command I've already sent on the bus I also read the echo of the command. The flush functions are set before the reading procedure then I guessed this functions cleans both the buffers on the serial device but it doesn't do it. So, can anyone explain to me how exactly work the flush function on the serial port?
Thank you in advance.