if (Serial.available() > 1) {
for (int i=0; i<3; i++) {
incomingChar[i] = Serial.read();
}
If there is 1 character to read, read all 3 of them. Not a good idea.
if (Serial.available() > 1) {
for (int i=0; i<3; i++) {
incomingChar[i] = Serial.read();
}
If there is 1 character to read, read all 3 of them. Not a good idea.