--- a/rtkbt/code/libbt-vendor/uart/src/bt_vendor_rtk.c
+++ b/rtkbt/code/libbt-vendor/uart/src/bt_vendor_rtk.c
@@ -126,15 +126,15 @@ static int op(bt_vendor_opcode_t opcode, void *param)
if (*state == BT_VND_PWR_OFF)
{
upio_set_bluetooth_power(UPIO_BT_POWER_OFF);
- usleep(200000);
- BTVNDDBG("set power off and delay 200ms");
+ sleep(1);
+ BTVNDDBG("set power off and delay 1s");
}
else if (*state == BT_VND_PWR_ON)
{
upio_set_bluetooth_power(UPIO_BT_POWER_ON);
- usleep(500000);
- BTVNDDBG("set power on and delay 500ms");
+ sleep(1);
+ BTVNDDBG("set power on and delay 1s");
}
}
diff --git a/src/bt_vendor_brcm.c b/src/bt_vendor_brcm.c
index e0cae51..820d5b4 100755
--- a/src/bt_vendor_brcm.c
+++ b/src/bt_vendor_brcm.c
@@ -140,10 +140,16 @@ static int op(bt_vendor_opcode_t opcode, void *param)
{
int *state = (int *) param;
if (*state == BT_VND_PWR_OFF)
+ {
upio_set_bluetooth_power(UPIO_BT_POWER_OFF);
+ usleep(500000);
+ BTVNDDBG("set power off and delay 500ms");
+ }
else if (*state == BT_VND_PWR_ON)
{
upio_set_bluetooth_power(UPIO_BT_POWER_ON);
+ usleep(500000);
+ BTVNDDBG("set power on and delay 500ms");
}
}