Skip to content

Commit 54a866c

Browse files
add broadcaster ifdef and pull headers into ifdef
1 parent 72e5d3f commit 54a866c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

features/FEATURE_BLE/ble/services/URIBeaconConfigService.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#endif
2727

2828
#if BLE_FEATURE_GATT_SERVER
29+
#if BLE_ROLE_BROADCASTER
2930

3031
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];
3132
extern const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID];
@@ -482,6 +483,7 @@ class URIBeaconConfigService {
482483
}
483484
};
484485

486+
#endif // BLE_ROLE_BROADCASTER
485487
#endif // BLE_FEATURE_GATT_SERVER
486488

487489
#endif // SERVICES_URIBEACONCONFIGSERVICE_H_

features/FEATURE_BLE/source/services/DFUService.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
#ifdef TARGET_NRF51822 /* DFU only supported on nrf51 platforms */
1818

19-
#include "ble/services/DFUService.h"
20-
2119
#if BLE_FEATURE_GATT_SERVER
2220

21+
#include "ble/services/DFUService.h"
22+
2323
const uint8_t DFUServiceBaseUUID[] = {
2424
0x00, 0x00, 0x00, 0x00, 0x12, 0x12, 0xEF, 0xDE,
2525
0x15, 0x23, 0x78, 0x5F, 0xEA, 0xBC, 0xD1, 0x23,

features/FEATURE_BLE/source/services/UARTService.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "ble/services/UARTService.h"
1817

1918
#if BLE_FEATURE_GATT_SERVER
2019

20+
#include "ble/services/UARTService.h"
21+
2122
const uint8_t UARTServiceBaseUUID[UUID::LENGTH_OF_LONG_UUID] = {
2223
0x6E, 0x40, 0x00, 0x00, 0xB5, 0xA3, 0xF3, 0x93,
2324
0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
@@ -42,4 +43,4 @@ const uint8_t UARTServiceRXCharacteristicUUID[UUID::LENGTH_OF_LONG_UUID] = {
4243
0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E,
4344
};
4445

45-
#endif // BLE_FEATURE_GATT_SERVER
46+
#endif // BLE_FEATURE_GATT_SERVER

features/FEATURE_BLE/source/services/URIBeaconConfigService.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "ble/services/URIBeaconConfigService.h"
1817

1918
#if BLE_FEATURE_GATT_SERVER
19+
#if BLE_ROLE_BROADCASTER
20+
21+
#include "ble/services/URIBeaconConfigService.h"
2022

2123
#define UUID_URI_BEACON(FIRST, SECOND) { \
2224
0xee, 0x0c, FIRST, SECOND, 0x87, 0x86, 0x40, 0xba, \
@@ -36,4 +38,5 @@ const uint8_t UUID_RESET_CHAR[UUID::LENGTH_OF_LONG_UUID] = UUID_URI_B
3638

3739
const uint8_t BEACON_UUID[sizeof(UUID::ShortUUIDBytes_t)] = {0xD8, 0xFE};
3840

41+
#endif // BLE_ROLE_BROADCASTER
3942
#endif // BLE_FEATURE_GATT_SERVER

0 commit comments

Comments
 (0)