From 2e28d3541b8da31ebef5a199baf8f544d238298e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 20 Apr 2013 22:16:28 -0500 Subject: [PATCH] libaltos: Delay after opening bluetooth device on linux Writes immediately after the open disappear sometimes. Signed-off-by: Keith Packard --- libaltos/libaltos.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2