This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
xmodem Redboot
- From: Tim michals <tcmichals at yahoo dot com>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 19 Jan 2005 18:41:44 -0800 (PST)
- Subject: [ECOS] xmodem Redboot
I'm downloading a binary file with multiple, ie more
the 3 consective EOF's which are not the in the last
packet.
if ((xyz.bufp[xyz.len-1] == EOF) &&
(xyz.bufp[xyz.len-2] == EOF) &&
(xyz.bufp[xyz.len-3] == EOF)) {
while (xyz.len && (xyz.bufp[xyz.len-1] == EOF)) {
xyz.len--;
}
The data gets eaten.
According to the xmodem documentation, if the last
packet contains EOF's this is considered the pad?
Is this correct?
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss