The stk500v2_getsync() function was improperly checking for success,
thus it was falsely reporting that it failed when it was actually working correctly. Fixed. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@482 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
749c20d5d1
commit
7a27c1840c
|
@ -237,7 +237,15 @@ retry:
|
|||
|
||||
// if we got bytes returned, check to see what came back
|
||||
if (status > 0) {
|
||||
if (resp[0] == STATUS_CMD_OK) {
|
||||
if ((resp[0] == CMD_SIGN_ON) && (resp[1] == STATUS_CMD_OK)) {
|
||||
#if 0
|
||||
int i;
|
||||
fprintf(stderr, "found programmer type: ");
|
||||
for (i=0; i<resp[2]; i++) {
|
||||
fprintf(stderr, "%c", resp[3+i]);
|
||||
}
|
||||
fprintf(stderr, "\n");
|
||||
#endif
|
||||
// success!
|
||||
return 0;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue