Subject:
|
More small changes to firmdl.c
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 11 Jan 1999 09:42:45 GMT
|
Viewed:
|
1247 times
|
| |
| |
Two more small changes to firmdl.c.
Gavin Smyth reported seeing long delays while downloading firmware, and
suggested a fix that may or may not have much effect, depending on your
system. That fix, which limits the number of response bytes waited for,
has now been incorporated into the source.
Gavin also asked about the clearing of zeros at the end of the firmware
file. The source had a comment about this, the comment being that it isn't
entirely a legal thing to do; now the code looks at the S0 header to see if
it looks like the header in Firm0309.lgo ("?LIB_VERSION_L00"), and if so,
it skips the zeros. Otherwise, the code figures that you used GCC, which
only includes zeros that are truly necessary, unless you explicitly tell it
to pad. I made it possible to #define FORCE_NO_ZERO_PADDING for the old
behavior, with knowledge that someday people are going to want to start
padding files with zeros again, to be compatible with the downloader in the
OCX.
-Kekoa
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|