i don' know if your application will allow for it, but you can try adding polling throughout your code to have smaller wait times during the check and look for and use the wait command in serin2
If you can adjust your transmitting device add a bunch of dummy spaces before the transmission so if you miss 1 or 2 no big deal, you weren't going to use them anyway. I''ve used something similar in the past.Code:main: ... normal stuff gosub get_data ... more normal stuff gosub get_data ... more normal stuff goto main get_data: serin2 Serial_IN, 84, 50, nodata, [wait (129), x] nodata: return




Bookmarks