Hi
I am trying to print the following all on one line
Serial.println(',,' += Mapped_Aux1 += '/' += Mapped_Aux3 += '/' += Mapped_Gear += '/' += Mapped_Flaps += '/' += WF_C += '/' += WF_WL += '/' += WF_FUF += '/' += LG_UD += '/' += LG_Doors += '/' += LG_BOF += '/' += CF_Pos += '/' += CF_AM += '/' += E_Temp += '/' += E_Choke += '/' += E_Imomb += '/' += E_Starter += '/' += C_OC += ',');
Mapped_Aux1, etc are all integers.
However I get the following error when compiling,
Serial_Coms:159: error: lvalue required as left operand of assignment
if I use "/" instead of '/' I get the following,
Serial_Coms:159: error: invalid conversion from 'const char*' to 'int'
Serial_Coms:159: error: assignment of read-only location '",,"'
I know that I can do this using
Serial.print(",,");
Serial.print(Mapped_Aux1);
Serial.print("/");
etc, with a Serial.println at the end.
However this can cause problems with the VB program I am creating that the arduino is communicating with if the arduino starts printing half way down the line when the port is first opened.
Any help or ideas would be appreciated.
Thanx