diff --git a/examples/bluetooth/nimble/bleprph/main/main.c b/examples/bluetooth/nimble/bleprph/main/main.c index 402b9744ba..d8a6608bc2 100644 --- a/examples/bluetooth/nimble/bleprph/main/main.c +++ b/examples/bluetooth/nimble/bleprph/main/main.c @@ -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 (¶ms, 0, sizeof(params));