Good Day,
I have a C++ Class that looks like this:
class WiFlyRNXV{
public:
WiFlyRNXV(byte pinReceive, byte pinSend); //Constructor with Pins for UART
SoftwareSerial uart; //SoftwareSerial driver
IRSystem irSystem;
}
and the constructor looks like this initially..
WiFlyRNXV::WiFlyRNXV(byte pinReceive, byte pinSend) : uart (pinReceive, pinSend){}
I had no issues..but once I did this:
WiFlyRNXV::WiFlyRNXV(byte pinReceive, byte pinSend) : uart (pinReceive, pinSend),irSystem(8){}
It suddenly threw a whole load of errors, including missing brackets, parsing errors etc. in my Main.cpp file. I can't understand why this would happen. Main includes the above class btw.