PDA

View Full Version : SERIN2 syntax and compiling error.



tasmod
- 7th June 2013, 15:21
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

tasmod
- 7th June 2013, 15:47
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.

Luckyborg
- 7th June 2013, 15:51
I think you may want something like:

SERIN2 PortA.2,84,1000,red,[wait("ACK")]