summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/hciattach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/hciattach.c b/tools/hciattach.c
index 0131dcb6..6959a006 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -323,6 +323,7 @@ static void bcsp_tshy_sig_alarm(int sig)
alarm(1);
return;
}
+ tcflush(serial_fd, TCIOFLUSH);
fprintf(stderr, "BCSP initialization timed out\n");
exit(1);
}
@@ -337,6 +338,7 @@ static void bcsp_tconf_sig_alarm(int sig)
alarm(1);
return;
}
+ tcflush(serial_fd, TCIOFLUSH);
fprintf(stderr, "BCSP initialization timed out\n");
exit(1);
}