This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RedBoot - Bug in _rb_gets()?
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] RedBoot - Bug in _rb_gets()?
- From: Chris Zankel <zankel at tensilica dot com>
- Date: Fri, 12 Oct 2001 19:17:00 -0700
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