
On Sun, May 13, 2007 at 01:25:36PM +0100, Bryan O'Donoghue wrote:
Hmm, you might want to change
unsigned int len = 0; while(len > 0) { usbtty_poll();
space = maxlen - usbtty_output.size; if(space){ /* Do stuff */ } }
to
/* Not tested */ unsigned int len = 0; while(len > 0) { usbtty_poll();
/* Do stuff */ }
in __usbtty_puts()
Ok, I'll test it. This should remove the problem that the system doesn't boot if no connected?
puts() I guess _should_ be a 'best effort'. Better, still, maybe we could add an environment variable which would switch puts() between flow-control and 'best effort', so that people have the choice.
/* Not tested */ unsigned int len = 0; while(len > 0) { usbtty_poll(); space = maxlen;
if(environment_variable_use_tty_flow_control) space = maxlen - usbtty_output.size;
if(space){ /* Do stuff */ } }
If I set environment_variable_use_tty_flow_control to "no", how I can restore it to "yes"?
Thanks,
Rodolfo