avrftdi: apply patch by rliebscher.

Use pin_checklist[] of size N_PINS instead N_PINS - 1, to avoid future
problems. Also remove pins_check from set_pin; instead use mask[0] == 0
to check wether to do something or not.

avrftdi_private.h: Change size of pin_checklist[] to N_PINS.
avrftdi.c: Adapt code to new size of pin_checklist. Remove pins_check
from set_pin.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1170 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Hannes Weisbach
2013-05-07 08:50:06 +00:00
parent 4fc72c7d58
commit 26ab40f3a5
3 changed files with 23 additions and 23 deletions

View File

@@ -66,7 +66,7 @@ typedef struct avrftdi_s {
/* internal RX buffer of the device. needed for INOUT transfers */
int rx_buffer_size;
/* pin checklist. */
struct pin_checklist_t pin_checklist[N_PINS - 1];
struct pin_checklist_t pin_checklist[N_PINS];
} avrftdi_t;
void avrftdi_log(int level, const char * func, int line, const char * fmt, ...);