libftdi: Flush buffer with detach.

This commit is contained in:
Uwe Bonnes 2018-05-08 19:34:29 +02:00
parent 2ec078cfcf
commit f3cacba219
1 changed files with 4 additions and 0 deletions

View File

@ -294,6 +294,10 @@ void target_detach(target *t)
{
t->detach(t);
t->attached = false;
#if defined(LIBFTDI)
# include "platform.h"
platform_buffer_flush();
#endif
}
bool target_check_error(target *t) { return t->check_error(t); }