Browse Source

NimBLE: Fixed advertising instance check api in bleprph example

isha.pardikar@espressif.com 3 years ago
parent
commit
d9a127c6dc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/bluetooth/nimble/bleprph/main/main.c

+ 2 - 1
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 (&params, 0, sizeof(params));