On 12/19/05, Joel VanderWerf <vjoel / path.berkeley.edu> wrote:
> But there is some logic in the op's code that looks for repeated "start> byte". I'm just not sure what the limit is.
A packet always starts with the two bytes "\x65\xEB", everything elseresets the state machine.
The special case in the code was needed to correcly handle"\x65\x65\xEB" (one bad character before valid start of packet)  --the state machine needs to always look for "\xEB" after "\x65"
-Levin