I've made a code for security monitor home. serin received a data its working well, but something is not work when press switch input portB not response while wait serin timeout 200mS. Serin haven't timeout for next address is press! I edited copy and paste show here;
main:
serin [200,press], 2, N2400, ("vs"), b9
if b9=1 then knock
if b9=2 then calling
if b9=3 then mailbox
if b9=4 then window1
...
...
...
...
...
...
goto main
press:
if pinB.7 = 1 then resets
if pinB.4 = 1 then checks
goto main
Is there code something is not right?
main:
serin [200,press], 2, N2400, ("vs"), b9
if b9=1 then knock
if b9=2 then calling
if b9=3 then mailbox
if b9=4 then window1
...
...
...
...
...
...
goto main
press:
if pinB.7 = 1 then resets
if pinB.4 = 1 then checks
goto main
Is there code something is not right?