This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RedBoot - Bug in _rb_gets()?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]