You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/11/02 10:29:30 UTC

[GitHub] [mynewt-nimble] sjanc commented on a change in pull request #1065: nimble/host/include/host/ble_gap: expose ble_gap_adv_active_instance

sjanc commented on a change in pull request #1065:
URL: https://github.com/apache/mynewt-nimble/pull/1065#discussion_r740922602



##########
File path: nimble/host/src/ble_gap.c
##########
@@ -1303,6 +1303,16 @@ ble_gap_adv_active_instance(uint8_t instance)
 }
 #endif
 
+#if MYNEWT_VAL(BLE_EXT_ADV)
+int ble_gap_ext_adv_active(uint8_t instance)
+{
+    if (instance >= BLE_ADV_INSTANCES) {
+        return -BLE_HS_EINVAL;

Review comment:
       this is actually a good point,  so lets just return 0 if instance is invalid...  (sorry for jumping back and forth on this)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org