[ECOS] RedBoot - Bug in _rb_gets()?
Chris Zankel
zankel@tensilica.com
Fri Oct 12 19:18:00 GMT 2001
Hello,
Maybe I am missing something, but the while loop in
ecos/packages/redboot/current/src/io.c:_rb_gets() seems
to be odd to me:
Although the timeout value for the mon_read_char_with_timeout()
function has already been set to a <timeout> value the while
loop also loops over this <timeout> variable:
...
mon_set_read_char_timeout(timeout);
while (timeout > 0) {
res = mon_read_char_with_timeout(&c);
if (res) { ... }
timeout -= 50;
}
...
Thanks,
Chris
More information about the Ecos-discuss
mailing list