I got this error this morning:
ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(Serial.peek() == "H") { ....
This appears to be telling me that "Serial.peek()" returns the pointer and not the byte in the serial buffer that I was intending. I want to peek at the next byte in the serial buffer and I suppose I could do it with the following code:
x = Serial.peek() ;
if(x == "H") { ...
but I'd rather do it in one expression inside the if() conditional.