/* Handshake bitches! */ while (handshake_rx != 'G') { /* Recieve and send back */ handshake_rx = RS232_rx(); RS232_tx(handshake_rx + 1); /* Wait until a G or F is recieved */ while (( (handshake_rx = RS232_rx) != 'G') || (handshake_rx != 'F')); }