Add error message for fail to enter programming mode. Fix typos.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@203 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Eric Weddington 2003-02-20 18:09:57 +00:00
parent 8aa98920ef
commit 4c52dfc911
1 changed files with 11 additions and 2 deletions

View File

@ -387,7 +387,16 @@ static int stk500_program_enable(PROGRAMMER * pgm, AVRPART * p)
return -1; return -1;
} }
fprintf(stderr, "%s: stk500_program_enable(): unkown response=0x%02x\n", if(buf[0] == Resp_STK_FAILED)
{
fprintf(stderr,
"%s: stk500_program_enable(): failed to enter programming mode\n",
progname);
return -1;
}
fprintf(stderr, "%s: stk500_program_enable(): unknown response=0x%02x\n",
progname, buf[0]); progname, buf[0]);
return -1; return -1;
@ -585,7 +594,7 @@ static void stk500_disable(PROGRAMMER * pgm)
return; return;
} }
fprintf(stderr, "%s: stk500_disable(): unkown response=0x%02x\n", fprintf(stderr, "%s: stk500_disable(): unknown response=0x%02x\n",
progname, buf[0]); progname, buf[0]);
return; return;