summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2010-09-10 09:54:26 -0700
committerJaikumar Ganesh <jaikumar@google.com>2010-09-10 09:56:24 -0700
commit82b2b955c801eb69eddf736676b8116c7c821e3a (patch)
treea83c73610199915470a0213d32dc74823e152240
parent0df913111ab36a1717f0cdb59dd51d8e6815b0be (diff)
downloadbluetooth-82b2b955c801eb69eddf736676b8116c7c821e3a.tar.gz
Delay 200 ms after powering up the BT chip..
The reset pin requires this time to stabilize. Patch contributed by:HYUNG SEOUNG YOO <hyungseoung.yoo@samsung.com> Change-Id: I452c6188696e3598ba22b58a8f4144dad50b7e07
-rw-r--r--bluedroid/bluetooth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bluedroid/bluetooth.c b/bluedroid/bluetooth.c
index b953082..2384ae4 100644
--- a/bluedroid/bluetooth.c
+++ b/bluedroid/bluetooth.c
@@ -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");