In stk500v2_command(), treat warnings as errors rather than success.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1006 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
37eb8e8456
commit
0926a2cbd7
|
@ -1,3 +1,8 @@
|
|||
2011-09-13 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
* stk500v2.c (stk500v2_command): Treat warnings as errors rather than
|
||||
success.
|
||||
|
||||
2011-08-30 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||
|
||||
bug #34027: avrdude AT90S1200 Problem (part 3 - documentation)
|
||||
|
|
16
stk500v2.c
16
stk500v2.c
|
@ -787,18 +787,20 @@ retry:
|
|||
msg = msgbuf;
|
||||
break;
|
||||
}
|
||||
if (quell_progress < 2)
|
||||
if (quell_progress < 2) {
|
||||
fprintf(stderr, "%s: stk500v2_command(): warning: %s\n",
|
||||
progname, msg);
|
||||
buf[1] = STATUS_CMD_OK; /* pretend success */
|
||||
}
|
||||
if (buf[1] == STATUS_CMD_OK)
|
||||
}
|
||||
} else if (buf[1] == STATUS_CMD_OK) {
|
||||
return status;
|
||||
if (buf[1] == STATUS_CMD_FAILED)
|
||||
fprintf(stderr, "%s: stk500v2_command(): command failed\n", progname);
|
||||
else
|
||||
} else if (buf[1] == STATUS_CMD_FAILED) {
|
||||
fprintf(stderr,
|
||||
"%s: stk500v2_command(): command failed\n",
|
||||
progname);
|
||||
} else {
|
||||
fprintf(stderr, "%s: stk500v2_command(): unknown status 0x%02x\n",
|
||||
progname, buf[1]);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue