summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-19 10:41:28 -0700
committerKeith Packard <keithp@keithp.com>2011-04-19 10:41:28 -0700
commit6b5957d5f6f8181da7be98c9bce49a0ec0b4a713 (patch)
tree5e80c2c657ac0c5d27ddef49f71aa0f6fd64030c
parent8de9d3cbfcd1db7b554fb761296a8de09aafc8c3 (diff)
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 <keithp@keithp.com>
-rw-r--r--altosui/libaltos/libaltos.c1
1 files changed, 1 insertions, 0 deletions
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);