Merge branch 'bugfix/nimble_ext_adv' into 'master'

NimBLE: Fixed advertising instance check api in bleprph example

See merge request espressif/esp-idf!22728
This commit is contained in:
Wang Meng Yang 2023-03-14 14:17:16 +08:00
commit c99f91d7df

View File

@ -93,8 +93,9 @@ ext_bleprph_advertise(void)
int rc;
/* First check if any instance is already active */
if(ble_gap_adv_active())
if(ble_gap_ext_adv_active(instance)) {
return;
}
/* use defaults for non-set params */
memset (&params, 0, sizeof(params));