libftdi: Flush buffer with detach.
This commit is contained in:
parent
2ec078cfcf
commit
f3cacba219
|
@ -294,6 +294,10 @@ void target_detach(target *t)
|
||||||
{
|
{
|
||||||
t->detach(t);
|
t->detach(t);
|
||||||
t->attached = false;
|
t->attached = false;
|
||||||
|
#if defined(LIBFTDI)
|
||||||
|
# include "platform.h"
|
||||||
|
platform_buffer_flush();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool target_check_error(target *t) { return t->check_error(t); }
|
bool target_check_error(target *t) { return t->check_error(t); }
|
||||||
|
|
Loading…
Reference in New Issue