[SOLVED] String comparison after serial read

  if (Serial.available() > 0) {
    int h=Serial.available();    // h probably == 1 at this point, unless the entire string was sent before you entered loop()
   h--;                // now it's 0, not that this variable is required

    for (int i=0;i<h;i++){   
      inData += (char)Serial.read();  // so this never gets executed
       }
   Serial.read();  // but even if it did why read again?
  }

This is bazaar, you're doing two serial.reads() based on a single available() and anyway all this will be complete long before the second char is received let alone any more of the string.

And how are you testing for the end of the transmission?


Rob