SERIN2 syntax and compiling error.
I get an error when I try to compile either of these lines.
It's supposed to wait 1 second and if nothing is received then return to label 'red'
SERIN2 PortA.2,84,1000,red[("ACK")]
or
SERIN2 PortA.2,84,[1000,red("ACK")]
I'm guessing it's the way I'm writing the syntax? What should it be?
Rob
Re: SERIN2 syntax and compiling error.
DOH!
Why after many searches do you then get it right just after posting to forum. :rolleyes:
SERIN2 PortA.2,84,1000,red,[WAIT("ACK")]
I assumed you set the timeout but didn't then need WAIT.
Re: SERIN2 syntax and compiling error.
I think you may want something like:
SERIN2 PortA.2,84,1000,red,[wait("ACK")]