Repeat until cycle and if statement issue
sopik
Posts: 2
Hello everybody!
Can you please help me with my problem? There is peace of code. On uart(2) are responses from GSM module. If response "K" is - then repeat cycle ends and main routine continue. But if K does't come routine repeat cycle never ends...
Thank you for help
BR
Vincenc
Can you please help me with my problem? There is peace of code. On uart(2) are responses from GSM module. If response "K" is - then repeat cycle ends and main routine continue. But if K does't come routine repeat cycle never ends...
PUB AckOK t := cnt repeat until (uart.rx(2)) == "K" 'Wait for "K" if (cnt - t) > clkfreq * 10 'If 10s is done, quit repeat cycle quit
Thank you for help
BR
Vincenc