mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 02:31:06 +00:00
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:
@@ -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, ...);
|
||||
|
||||
Reference in New Issue
Block a user