[BRLTTY] eurobraille driver: bug in serial stuff?

Sébastien Hinderer Sebastien.Hinderer at ens-lyon.org
Thu Feb 25 09:46:01 EST 2010


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.


More information about the BRLTTY mailing list