Serial Port problem (inappropriate serial Output)

How do you do that on Arduino UNO?

flush()

Description

Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)

raschemmel:

How do you do that on Arduino UNO?

flush()

Description

Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)

Serial.flush() - Arduino Reference

That was NOT the question.

PaulS:
That was NOT the question.

Agreed - indeed it is almost the opposite of what was asked.

However the question that was asked (and an answer to it) have nothing to do with the problem. Simplest way to solve the problem is to use unsigned char or byte instead of char.

...R