'Instead of waiting, grab the first byte and see if it's for your ID or Broadcast then
'if so collect the rest of the bytes
HSerIn Timeout,ExitRx,[BufRX(0)]
If ((BufRx[0] = MyID) or (BufRx[0] = BroadCast)) then
For Cnt = 1 to 7
HSerIn Timeout,ExitRx,[BufRX(Cnt)]
Next Cnt
EndIf
WAIT actually has to look at each byte as well in order to know weather to start storing or not.




Bookmarks