avrftdi.c: Fail on wrong pin configuration
also change error return value of set_pin from 1 to -1. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1165 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
ec6278b5a8
commit
a9e1e819c1
|
@ -230,7 +230,7 @@ static int set_pin(PROGRAMMER * pgm, int pinfunc, int value)
|
||||||
avrftdi_print(2, "%s info: Pin is zero, value: %d!\n",
|
avrftdi_print(2, "%s info: Pin is zero, value: %d!\n",
|
||||||
progname, value);
|
progname, value);
|
||||||
*/
|
*/
|
||||||
return 1;
|
return -1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -645,7 +645,8 @@ static int avrftdi_open(PROGRAMMER * pgm, char *port)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
avrftdi_pin_setup(pgm);
|
if(avrftdi_pin_setup(pgm))
|
||||||
|
return -1;
|
||||||
|
|
||||||
/**********************************************
|
/**********************************************
|
||||||
* set the ready LED and set our direction up *
|
* set the ready LED and set our direction up *
|
||||||
|
|
Loading…
Reference in New Issue