From: Keith Packard Date: Sun, 21 Apr 2013 03:16:28 +0000 (-0500) Subject: libaltos: Delay after opening bluetooth device on linux X-Git-Tag: altosdroid_v1.2-1~4 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=2e28d3541b8da31ebef5a199baf8f544d238298e libaltos: Delay after opening bluetooth device on linux Writes immediately after the open disappear sometimes. Signed-off-by: Keith Packard --- 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);