Skip to content

Commit 18a2e05

Browse files
committed
Properly guard NimBLE files
1 parent 50c29ea commit 18a2e05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+54
-49
lines changed

libraries/NimBLE/src/BLE2904.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_2904_H_
2020

2121
#include "sdkconfig.h"
22-
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
22+
#if defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include "BLEDescriptor.h"
2525

libraries/NimBLE/src/BLEAddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ADDRESS_H_
1919
#define NIMBLE_CPP_ADDRESS_H_
2020
#include "sdkconfig.h"
21-
#if defined(CONFIG_BT_ENABLED)
21+
#if defined(CONFIG_NIMBLE_ENABLED)
2222

2323
#include "nimble/ble.h"
2424

libraries/NimBLE/src/BLEAdvertisedDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_ADVERTISED_DEVICE_H_
2020

2121
#include "sdkconfig.h"
22-
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
22+
#if defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
2323

2424
#include "BLEAddress.h"
2525
#include "BLEScan.h"

libraries/NimBLE/src/BLEAdvertisementData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_ADVERTISEMENT_DATA_H_
2020

2121
#include "sdkconfig.h"
22-
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
22+
#if (defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2323

2424
#include <cstdint>
2525
#include <string>

libraries/NimBLE/src/BLEAdvertising.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_ADVERTISING_H_
2020

2121
#include "sdkconfig.h"
22-
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
22+
#if (defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2323

2424
#include "host/ble_gap.h"
2525

libraries/NimBLE/src/BLEAttValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ATTVALUE_H
1919
#define NIMBLE_CPP_ATTVALUE_H
2020
#include "sdkconfig.h"
21-
#if defined(CONFIG_BT_ENABLED)
21+
#if defined(CONFIG_NIMBLE_ENABLED)
2222

2323
#include <Arduino.h>
2424

libraries/NimBLE/src/BLEAttribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_ATTRIBUTE_H_
2020

2121
#include "sdkconfig.h"
22-
#if defined(CONFIG_BT_ENABLED) && (defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) || defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL))
22+
#if defined(CONFIG_NIMBLE_ENABLED) && (defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) || defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL))
2323

2424
#include "BLEUUID.h"
2525

libraries/NimBLE/src/BLEBeacon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_BEACON_H_
2020

2121
#include "sdkconfig.h"
22-
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
22+
#if defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
2323

2424
class BLEUUID;
2525

libraries/NimBLE/src/BLECharacteristic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_CHARACTERISTIC_H_
1919
#define NIMBLE_CPP_CHARACTERISTIC_H_
2020
#include "sdkconfig.h"
21-
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
21+
#if defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2222

2323
class BLECharacteristicCallbacks;
2424
class BLEService;

libraries/NimBLE/src/BLEClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define NIMBLE_CPP_CLIENT_H_
2020

2121
#include "sdkconfig.h"
22-
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)
22+
#if defined(CONFIG_NIMBLE_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)
2323

2424
#include "host/ble_gap.h"
2525

0 commit comments

Comments
 (0)