ftdi_bmp: Reject writes with no data.

Pending transfers made the MPSSE behaviour strange and unpredictable.
This commit is contained in:
Uwe Bonnes 2020-08-04 17:24:06 +02:00 committed by UweBonnes
parent c41ab1738e
commit ae8cb8ab46
1 changed files with 2 additions and 0 deletions

View File

@ -455,6 +455,8 @@ bool libftdi_srst_get_val(void)
void libftdi_buffer_flush(void)
{
if (!bufptr)
return;
DEBUG_WIRE("Flush\n");
#if defined(USE_USB_VERSION_BIT)
static struct ftdi_transfer_control *tc_write = NULL;