From 8e482c94233402665c5bb98520e3c389b7ca03e9 Mon Sep 17 00:00:00 2001 From: baohongde Date: Tue, 23 Mar 2021 21:11:12 +0800 Subject: [PATCH] components/bt: Fix assert without sw coexist enabled --- components/bt/controller/esp32/bt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/controller/esp32/bt.c b/components/bt/controller/esp32/bt.c index a4f1c39373..c7c8ccf809 100644 --- a/components/bt/controller/esp32/bt.c +++ b/components/bt/controller/esp32/bt.c @@ -1112,7 +1112,7 @@ static uint8_t coex_schm_curr_period_get_wrapper(void) #if CONFIG_SW_COEXIST_ENABLE return coex_schm_curr_period_get(); #else - return 0; + return 1; #endif } @@ -1130,7 +1130,7 @@ static int coex_wifi_channel_get_wrapper(uint8_t *primary, uint8_t *secondary) #if CONFIG_SW_COEXIST_ENABLE return coex_wifi_channel_get(primary, secondary); #else - return 0; + return -1; #endif } @@ -1139,7 +1139,7 @@ static int coex_register_wifi_channel_change_callback_wrapper(void *cb) #if CONFIG_SW_COEXIST_ENABLE return coex_register_wifi_channel_change_callback(cb); #else - return 0; + return -1; #endif }