I know this is probably something easy, but I've been beating my head against the LCD for a couple of hours and some fresh eyes might help.
I'm writing a function in a C library to receive a serial message. I've been debugging it (not the best coder ever....) so I added in the commented out line just below the first curly bracket for debug. Everything worked just fine.
Now when I comment it out and rerun the code, nothing works. Same exact code, same inputs.
Anybody got any ideas?
void rSerial::receiveTemp(tempMeasurement *t)
//if (msgIn()) Serial.print("MsgIn"); //THE LINE IN QUESTION//
if (Serial.read() == HEADER)
if (msgIn()) (*t).msgType = Serial.read();
int i = 0;
while (msgIn() && i < 12)
(*t).msg[i] = Serial.read();
if (msgIn() && Serial.read() == TRAILER) (*t).valid = true;
else (*t).valid = false;
if (Serial.available()) return true;
else return false;