mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
components/bt: Fix assert without sw coexist enabled
This commit is contained in:
@@ -1112,7 +1112,7 @@ static uint8_t coex_schm_curr_period_get_wrapper(void)
|
|||||||
#if CONFIG_SW_COEXIST_ENABLE
|
#if CONFIG_SW_COEXIST_ENABLE
|
||||||
return coex_schm_curr_period_get();
|
return coex_schm_curr_period_get();
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1130,7 +1130,7 @@ static int coex_wifi_channel_get_wrapper(uint8_t *primary, uint8_t *secondary)
|
|||||||
#if CONFIG_SW_COEXIST_ENABLE
|
#if CONFIG_SW_COEXIST_ENABLE
|
||||||
return coex_wifi_channel_get(primary, secondary);
|
return coex_wifi_channel_get(primary, secondary);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1139,7 +1139,7 @@ static int coex_register_wifi_channel_change_callback_wrapper(void *cb)
|
|||||||
#if CONFIG_SW_COEXIST_ENABLE
|
#if CONFIG_SW_COEXIST_ENABLE
|
||||||
return coex_register_wifi_channel_change_callback(cb);
|
return coex_register_wifi_channel_change_callback(cb);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user