mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55:27 +00:00
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:
13
stk500.c
13
stk500.c
@@ -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;
|
||||||
|
Reference in New Issue
Block a user