diff --git a/examples/bluetooth/nimble/bleprph/main/main.c b/examples/bluetooth/nimble/bleprph/main/main.c index cf86fe2a24..e12f28b25e 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));