Add error message for fail to enter programming mode. Fix typos.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@203 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
1fc75de579
commit
31332cf70a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue