Hi,

> you should really only read one byte at a time. You should wait for that byte 
> if it's not the first byte of a packet but you should not wait for it if it 
> is 
> the first byte of a packet. You can set the wait timeout fairly high when 
> waiting for a non-first byte since you fully expect it to arrive so there's 
> no 
> point in setting the itmeout too low and risking missing it.

In addition to that, reading packets byte per byte rather than reading
several bytes at once as it's done currently would, in my opinion, make
the code much more readable.

Sherab.
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to