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:
Joerg Wunsch 2011-09-13 15:14:53 +00:00
parent 37eb8e8456
commit 0926a2cbd7
2 changed files with 14 additions and 7 deletions

View File

@ -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)

View File

@ -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;
}
}