Can anyone tell me why this will not compile?
[code]ENABLEHSERIAL
sethserial h9600,h8databits,hnoparity,h1stopbits
elmout var long
elmin var long
dtc var long
pause 3000
main
hserin 500, expd, [elmout]
hserout ">AT Z",13]
if elmout= "ready" then
hserout "req codes"]
else
goto main
endif
serout s_out, N9600, "got data ", elmout]
goto main
expd
goto main
endn
[/code]
I’m using IDE 8.0.1.11. I get an error:
(LINE 47) : [TOKEN “r”] : Expected THEN. It points to the line if elmout. I cant for the life of me figure out why.
Thanks for the help