summaryrefslogtreecommitdiffstats
path: root/tools/hciattach.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-10-11 13:59:57 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-10-11 13:59:57 +0000
commit3aa6a3e9a775e1d143d3640fe7f3ced170bb71b9 (patch)
tree92a4fcf2b27ff59d3991197b203a84df76bda23d /tools/hciattach.c
parentb089fd9850e50bb0a75dacfb665ec1e85aaa30b4 (diff)
Sleep some time after sending break
Diffstat (limited to 'tools/hciattach.c')
-rw-r--r--tools/hciattach.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hciattach.c b/tools/hciattach.c
index d59992e1..ac94c41e 100644
--- a/tools/hciattach.c
+++ b/tools/hciattach.c
@@ -908,8 +908,10 @@ int init_uart(char *dev, struct uart_t *u, int send_break)
tcflush(fd, TCIOFLUSH);
- if (send_break)
+ if (send_break) {
tcsendbreak(fd, 0);
+ usleep(500000);
+ }
if (u->init && u->init(fd, u, &ti) < 0)
return -1;