OSDN Git Service

Delay 200 ms after powering up the BT chip..
authorJaikumar Ganesh <jaikumar@google.com>
Fri, 10 Sep 2010 16:54:26 +0000 (09:54 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Fri, 10 Sep 2010 16:56:24 +0000 (09:56 -0700)
The reset pin requires this time to stabilize.
Patch contributed by:HYUNG SEOUNG YOO <hyungseoung.yoo@samsung.com>

Change-Id: I452c6188696e3598ba22b58a8f4144dad50b7e07

bluedroid/bluetooth.c

index b953082..2384ae4 100644 (file)
@@ -155,6 +155,9 @@ int bt_enable() {
 
     if (set_bluetooth_power(1) < 0) goto out;
 
+    // Wait for some time so that BT chip stabilizes
+    usleep(200000);  // 200 ms delay
+
     LOGI("Starting hciattach daemon");
     if (property_set("ctl.start", "hciattach") < 0) {
         LOGE("Failed to start hciattach");