From f4bc6f9ddd0bc196091bc417e6337a475185fa3d Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 6 Mar 2018 14:15:13 +0100 Subject: [PATCH] libftdi/platform.c: Issue SEND_IMMEDIATE before reading. --- src/platforms/libftdi/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platforms/libftdi/platform.c b/src/platforms/libftdi/platform.c index 2f55a4d..7c1cdb8 100644 --- a/src/platforms/libftdi/platform.c +++ b/src/platforms/libftdi/platform.c @@ -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;