NimBLE: Fixed advertising instance check api in bleprph example

This commit is contained in:
isha.pardikar@espressif.com 2023-03-13 14:40:06 +05:30
parent 251e0c5fc7
commit d9a127c6dc

View File

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