mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(bt/bluedroid): fixed issues from AI review in GAP, SPP, HID, L2CAP and HCI
This commit is contained in:
@@ -41,6 +41,12 @@ tGAP_CB *gap_cb_ptr;
|
||||
*******************************************************************************/
|
||||
UINT8 GAP_SetTraceLevel (UINT8 new_level)
|
||||
{
|
||||
#if GAP_DYNAMIC_MEMORY == TRUE
|
||||
if (!gap_cb_ptr) {
|
||||
return GAP_INITIAL_TRACE_LEVEL;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (new_level != 0xFF) {
|
||||
gap_cb.trace_level = new_level;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user