This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new b156b1f  BLE Host - Remove BLE_EDDYSTONE syscfg setting.
b156b1f is described below

commit b156b1f01288557cb6cdfc8642ce2d179ea420f8
Author: Christopher Collins <[email protected]>
AuthorDate: Wed Jul 5 19:14:30 2017 -0700

    BLE Host - Remove BLE_EDDYSTONE syscfg setting.
    
    This syscfg setting is unnecessary, as none of the eddystone code gets
    included in the final build if it isn't referenced.
---
 net/nimble/host/include/host/ble_hs.h | 1 +
 net/nimble/host/src/ble_eddystone.c   | 8 --------
 net/nimble/host/syscfg.yml            | 6 ------
 3 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/net/nimble/host/include/host/ble_hs.h 
b/net/nimble/host/include/host/ble_hs.h
index 9fd15f0..85885bd 100644
--- a/net/nimble/host/include/host/ble_hs.h
+++ b/net/nimble/host/include/host/ble_hs.h
@@ -23,6 +23,7 @@
 #include <inttypes.h>
 #include "nimble/hci_common.h"
 #include "host/ble_att.h"
+#include "host/ble_eddystone.h"
 #include "host/ble_gap.h"
 #include "host/ble_gatt.h"
 #include "host/ble_hs_adv.h"
diff --git a/net/nimble/host/src/ble_eddystone.c 
b/net/nimble/host/src/ble_eddystone.c
index f19191d..1f17393 100644
--- a/net/nimble/host/src/ble_eddystone.c
+++ b/net/nimble/host/src/ble_eddystone.c
@@ -123,10 +123,6 @@ ble_eddystone_set_adv_data_gen(struct ble_hs_adv_fields 
*adv_fields,
 int
 ble_eddystone_set_adv_data_uid(struct ble_hs_adv_fields *adv_fields, void *uid)
 {
-#if !MYNEWT_VAL(BLE_EDDYSTONE)
-    return BLE_HS_ENOTSUP;
-#endif
-
     uint8_t *svc_data;
     int8_t tx_pwr;
     int rc;
@@ -184,10 +180,6 @@ ble_eddystone_set_adv_data_url(struct ble_hs_adv_fields 
*adv_fields,
                                uint8_t url_scheme, char *url_body,
                                uint8_t url_body_len, uint8_t url_suffix)
 {
-#if !MYNEWT_VAL(BLE_EDDYSTONE)
-    return BLE_HS_ENOTSUP;
-#endif
-
     uint8_t *svc_data;
     int8_t tx_pwr;
     int url_len;
diff --git a/net/nimble/host/syscfg.yml b/net/nimble/host/syscfg.yml
index 110d87e..98dcdcc 100644
--- a/net/nimble/host/syscfg.yml
+++ b/net/nimble/host/syscfg.yml
@@ -313,12 +313,6 @@ syscfg.defs:
             The rate that new random addresses should be generated (seconds).
         value: 300
 
-    # Miscellaneous features.
-    BLE_EDDYSTONE:
-        description: >
-            Enables advertising of Eddystone beacons.
-        value: 1
-
     # Store settings.
     BLE_STORE_MAX_BONDS:
         description: >

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to