altosui: Wait two seconds after bluetooth connect XXX
authorKeith Packard <keithp@keithp.com>
Tue, 19 Apr 2011 17:41:28 +0000 (10:41 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 19 Apr 2011 17:41:28 +0000 (10:41 -0700)
"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>
altosui/libaltos/libaltos.c

index 2c47f3e..c5bcf90 100644 (file)
@@ -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);