summaryrefslogtreecommitdiff
path: root/libaltos
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-20 22:16:28 -0500
committerKeith Packard <keithp@keithp.com>2013-04-20 22:22:41 -0500
commit2e28d3541b8da31ebef5a199baf8f544d238298e (patch)
treeb56ee8b4d12303a0edc85dc10d5f02cd67d7af8d /libaltos
parent02a564bbc3a23b4f90685e8b29083ddb3e4b3563 (diff)
libaltos: Delay after opening bluetooth device on linux
Writes immediately after the open disappear sometimes. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'libaltos')
-rw-r--r--libaltos/libaltos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libaltos/libaltos.c b/libaltos/libaltos.c
index 69a6735f..fc949c70 100644
--- a/libaltos/libaltos.c
+++ b/libaltos/libaltos.c
@@ -765,6 +765,7 @@ altos_bt_open(struct altos_bt_device *device)
altos_set_last_posix_error();
goto no_link;
}
+ usleep(100 * 1000);
#ifdef USE_POLL
pipe(file->pipe);