libaltos: Delay after opening bluetooth device on linux
authorKeith Packard <keithp@keithp.com>
Sun, 21 Apr 2013 03:16:28 +0000 (22:16 -0500)
committerKeith Packard <keithp@keithp.com>
Sun, 21 Apr 2013 03:22:41 +0000 (22:22 -0500)
Writes immediately after the open disappear sometimes.

Signed-off-by: Keith Packard <keithp@keithp.com>
libaltos/libaltos.c

index 69a6735f50e72febc28db62726d9f80760d2a8f7..fc949c7020a2e8143f5c5f83238ebda3cb4b1003 100644 (file)
@@ -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);