From: Keith Packard Date: Tue, 19 Apr 2011 17:41:28 +0000 (-0700) Subject: altosui: Wait two seconds after bluetooth connect XXX X-Git-Tag: 0.9.3~56 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6b5957d5f6f8181da7be98c9bce49a0ec0b4a713 altosui: Wait two seconds after bluetooth connect XXX "something" isn't quite ready to communicate right after the device is connected, so we stick a delay in. There should be a better fix. Signed-off-by: Keith Packard --- diff --git a/altosui/libaltos/libaltos.c b/altosui/libaltos/libaltos.c index 2c47f3e5..c5bcf900 100644 --- a/altosui/libaltos/libaltos.c +++ b/altosui/libaltos/libaltos.c @@ -698,6 +698,7 @@ altos_bt_open(struct altos_bt_device *device) perror("connect"); goto no_link; } + sleep(2); #ifdef USE_POLL pipe(file->pipe);