diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-20 22:16:28 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-20 22:22:41 -0500 |
commit | 2e28d3541b8da31ebef5a199baf8f544d238298e (patch) | |
tree | b56ee8b4d12303a0edc85dc10d5f02cd67d7af8d | |
parent | 02a564bbc3a23b4f90685e8b29083ddb3e4b3563 (diff) |
libaltos: Delay after opening bluetooth device on linux
Writes immediately after the open disappear sometimes.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | libaltos/libaltos.c | 1 |
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); |