diff --git a/src/target/target.c b/src/target/target.c index 1882851..559792c 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -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); }