ftdiJtagMPSSE: use correct size for ch552 dummy buffer

This commit is contained in:
Gwenhael Goavec-Merou 2020-10-17 15:44:21 +02:00
parent 04df474e12
commit 717d5065b4
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ int FtdiJtagMPSSE::writeTDI(uint8_t *tdi, uint8_t *tdo, uint32_t len, bool last)
int nb_byte = real_len >> 3; // number of byte to send
int nb_bit = (real_len & 0x07); // residual bits
int xfer = tx_buff_size - 3;
unsigned char c[len];
unsigned char c[xfer];
unsigned char *rx_ptr = (unsigned char *)tdo;
unsigned char *tx_ptr = (unsigned char *)tdi;
unsigned char tx_buf[3] = {(unsigned char)(MPSSE_LSB |