I believe I have a loop somewhere in my program, however after hours and hours of searching I simply can not find it.
I would appreciate any help that could be provided.
Basically my Master receives ASCII commands from Serial interface in the form of 6 Bytes starting with A. In the form of AXXCYY where A is the Slave Adress Unit and YY is the Command to be issued.
The Master compiles and works great.
However the Slave "Marker" will not compile.
The intention is that Receiving a command to A00 or A(Unit Address) will issue the command CYY. with YY being the Command to put the slave into.
The Program was working, then all of a sudden I made a stupid mistake somewhere in my code and I simply cannot find it.
What am I missing? The title indicates a problem with Java regular expressions but none of your code is Java. Also, nothing in the body of post makes reference to regular expressions.
If the Arduino IDE is giving a Java error it is most likely that you are missing something (perhaps a closing quote) that is confusing Java because whoever wrote the IDE did not build in sufficient error checking.
There is little alternative but careful scrutiny of your code.
Maybe try commenting out various lines to isolate the one that causes the problem.
That's not the whole message, but I think the line causing your problem is probably the one mentioned in post #2. Java will puke on the code if you have a lone quote somewhere because it starts trying to turn your code into one long string literal and runs out of room for it.