energia/Energia — pull request #420 by spirilis (2014-08-19 21:38:32+00:00)
Title: !serial is not recognized

Example:

void setup() {
Serial.begin(9600);
delay(4000);
while(!Serial);
}

The !Serial conditional is not supported. This is leveraged in many Arduino examples & would be good to support for further compatibility.

Energia returns:
app.ino: In function 'void setup()':
app.ino:17:10: error: no match for 'operator!' in '!Serial'
app.ino:17:10: note: candidate is:
app.ino:17:10: note: operator!(bool)
app.ino:17:10: note: no known conversion for argument 1 from 'HardwareSerial' to 'bool'