libftdi/platform.c: Issue SEND_IMMEDIATE before reading.

This commit is contained in:
Uwe Bonnes 2018-03-06 14:15:13 +01:00
parent 744deb678d
commit f4bc6f9ddd
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ int platform_buffer_write(const uint8_t *data, int size)
int platform_buffer_read(uint8_t *data, int size)
{
int index = 0;
outbuf[bufptr++] = SEND_IMMEDIATE;
platform_buffer_flush();
while((index += ftdi_read_data(ftdic, data + index, size-index)) != size);
return size;