From 2cb4efedd84da46106b84d08d8d8ee34ea82491b Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 21 Nov 2024 15:37:42 +0800 Subject: [PATCH] =?utf8?q?=E5=8E=BB=E9=99=A4=E8=93=9D=E7=89=99=E5=88=9D?= =?utf8?q?=E5=A7=8B=E5=8C=96=E4=B8=AD=E7=9A=84irq=5Flock?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/utils/custom_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 372093009..2fb2b51ea 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -406,7 +406,7 @@ extern void bluetooth_enable_all(void); bool start_custom_ble_service(void) { //加锁避免bt 初始化失败 - uint32_t irq_sts = osal_irq_lock(); + // uint32_t irq_sts = osal_irq_lock(); #ifdef SUPPORT_BLE_SERVICE PRINT("start custom protocol classic bt ble service !\r\n"); bluetooth_enable_all(); @@ -415,7 +415,7 @@ bool start_custom_ble_service(void) { uapi_dev_runtime_set_bt_powerstat(1); } - osal_irq_restore(irq_sts); + // osal_irq_restore(irq_sts); return true; } -- 2.17.1