[quoted lines by Yannick PLASSIARD on 2010/02/25 at 15:19 +0100] >Due to the fact that my code calls serialReadData() each time it needs >some data and then reassembles itself a packet. In this situation would >it be "correct" to tell serialReadData() not to wait for any >initial/subsequent timeouts ? I investigated and it seems brltty will >not burn some extra CPU/memory usage and it suppesses the log warning.
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. -- Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God. Phone: 1-613-726-0014 | Ottawa, Ontario | 2011 May 21 is the Day of Judgement. EMail: [email protected] | Canada K2A 1H7 | 2011 Oct 21 is the End of the World. http://FamilyRadio.com/ | http://Mielke.cc/bible/ _______________________________________________ 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
