patch #8444: Proposal for modifications in -B and -U command options managment
* update.c (parse_op): Default -U filename to RBIN for output files git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1425 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
d4b40ef6ee
commit
f36484ed19
|
@ -1,3 +1,9 @@
|
||||||
|
2018-01-21 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
patch #8444: Proposal for modifications in -B and -U command options managment
|
||||||
|
* update.c (parse_op): Default -U filename to RBIN for output
|
||||||
|
files
|
||||||
|
|
||||||
2018-01-18 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2018-01-18 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
Submitted by Simone:
|
Submitted by Simone:
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -64,6 +64,8 @@ Current:
|
||||||
patch #8311: Add IPv6 support to the -Pnet:host:port option
|
patch #8311: Add IPv6 support to the -Pnet:host:port option
|
||||||
patch #9542: Correct "usersig" on avr8x devices
|
patch #9542: Correct "usersig" on avr8x devices
|
||||||
patch #8128: Added new option to configure.ac script
|
patch #8128: Added new option to configure.ac script
|
||||||
|
patch #8444: Proposal for modifications in -B and -U command options managment
|
||||||
|
(partially)
|
||||||
|
|
||||||
* Internals:
|
* Internals:
|
||||||
- New avrdude.conf keyword "family_id", used to verify SIB attributes
|
- New avrdude.conf keyword "family_id", used to verify SIB attributes
|
||||||
|
|
4
update.c
4
update.c
|
@ -113,7 +113,9 @@ UPDATE * parse_op(char * s)
|
||||||
cp = p;
|
cp = p;
|
||||||
p = strrchr(cp, ':');
|
p = strrchr(cp, ':');
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
upd->format = FMT_AUTO;
|
// missing format, default to "AUTO" for write and verify,
|
||||||
|
// and to binary for read operations:
|
||||||
|
upd->format = upd->op == DEVICE_READ? FMT_RBIN: FMT_AUTO;
|
||||||
fnlen = strlen(cp);
|
fnlen = strlen(cp);
|
||||||
upd->filename = (char *)malloc(fnlen + 1);
|
upd->filename = (char *)malloc(fnlen + 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue