-
Serin2 multi wait?
Is it possible to have multiple waits in a serin2 command? Looking for this OR that.
Something like this;
SerIn2 modem_in, 396, 500, loop, [wait($80) or wait($40),length,STR idstring\length]
I know the syntax is insane but I wasn’t sure how else to ask.
Thanks in advance for the help!
Chris
-
Nope, there's no such existing things, but i think you could use something like this
Code:
SerIn2 modem_in, 396, 500, loop,[ByteA]
if ByteA=$80 or ByteA=$40 THEN
SERIN.. the rest of the process
endif
Probably i would prefer to use the hardware USART to prevent some data lost... like length
HTH
-
Steve,
Great idea, that should do the trick.
Thanks!
Chris