Skip to content

Commit 263a484

Browse files
committed
Change check for CONFIG_BT_ENABLE to really be a check for CONFIG_BLUEDROID_ENABLED
Which is really what should have been tested. This allows use of the Arduino layer with the newer Nimble stack for those that don't want to use Bluedroid. In support of meshtastic/firmware#266
1 parent b7f106c commit 263a484

Some content is hidden

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

48 files changed

+99
-88
lines changed

libraries/BLE/src/BLE2902.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml
1111
*/
1212
#include "sdkconfig.h"
13-
#if defined(CONFIG_BT_ENABLED)
13+
#if defined(CONFIG_BLUEDROID_ENABLED)
1414

1515
#include "BLE2902.h"
1616

libraries/BLE/src/BLE2902.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMPONENTS_CPP_UTILS_BLE2902_H_
99
#define COMPONENTS_CPP_UTILS_BLE2902_H_
1010
#include "sdkconfig.h"
11-
#if defined(CONFIG_BT_ENABLED)
11+
#if defined(CONFIG_BLUEDROID_ENABLED)
1212

1313
#include "BLEDescriptor.h"
1414

@@ -30,5 +30,5 @@ class BLE2902: public BLEDescriptor {
3030

3131
}; // BLE2902
3232

33-
#endif /* CONFIG_BT_ENABLED */
33+
#endif /* CONFIG_BLUEDROID_ENABLED */
3434
#endif /* COMPONENTS_CPP_UTILS_BLE2902_H_ */

libraries/BLE/src/BLE2904.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
1111
*/
1212
#include "sdkconfig.h"
13-
#if defined(CONFIG_BT_ENABLED)
13+
#if defined(CONFIG_BLUEDROID_ENABLED)
1414

1515
#include "BLE2904.h"
1616

libraries/BLE/src/BLE2904.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMPONENTS_CPP_UTILS_BLE2904_H_
99
#define COMPONENTS_CPP_UTILS_BLE2904_H_
1010
#include "sdkconfig.h"
11-
#if defined(CONFIG_BT_ENABLED)
11+
#if defined(CONFIG_BLUEDROID_ENABLED)
1212

1313
#include "BLEDescriptor.h"
1414

@@ -70,5 +70,5 @@ class BLE2904: public BLEDescriptor {
7070
BLE2904_Data m_data;
7171
}; // BLE2904
7272

73-
#endif /* CONFIG_BT_ENABLED */
73+
#endif /* CONFIG_BLUEDROID_ENABLED */
7474
#endif /* COMPONENTS_CPP_UTILS_BLE2904_H_ */

libraries/BLE/src/BLEAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Author: kolban
66
*/
77
#include "sdkconfig.h"
8-
#if defined(CONFIG_BT_ENABLED)
8+
#if defined(CONFIG_BLUEDROID_ENABLED)
99

1010
#include "BLEAddress.h"
1111
#include <string>

libraries/BLE/src/BLEAddress.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMPONENTS_CPP_UTILS_BLEADDRESS_H_
99
#define COMPONENTS_CPP_UTILS_BLEADDRESS_H_
1010
#include "sdkconfig.h"
11-
#if defined(CONFIG_BT_ENABLED)
11+
#if defined(CONFIG_BLUEDROID_ENABLED)
1212
#include <esp_gap_ble_api.h> // ESP32 BLE
1313
#include <string>
1414

@@ -30,5 +30,5 @@ class BLEAddress {
3030
esp_bd_addr_t m_address;
3131
};
3232

33-
#endif /* CONFIG_BT_ENABLED */
33+
#endif /* CONFIG_BLUEDROID_ENABLED */
3434
#endif /* COMPONENTS_CPP_UTILS_BLEADDRESS_H_ */

libraries/BLE/src/BLEAdvertisedDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Author: kolban
1313
*/
1414
#include "sdkconfig.h"
15-
#if defined(CONFIG_BT_ENABLED)
15+
#if defined(CONFIG_BLUEDROID_ENABLED)
1616
#include <sstream>
1717
#include "BLEAdvertisedDevice.h"
1818
#include "BLEUtils.h"
@@ -562,5 +562,5 @@ size_t BLEAdvertisedDevice::getPayloadLength() {
562562
return m_payloadLength;
563563
}
564564

565-
#endif /* CONFIG_BT_ENABLED */
565+
#endif /* CONFIG_BLUEDROID_ENABLED */
566566

libraries/BLE/src/BLEAdvertisedDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMPONENTS_CPP_UTILS_BLEADVERTISEDDEVICE_H_
99
#define COMPONENTS_CPP_UTILS_BLEADVERTISEDDEVICE_H_
1010
#include "sdkconfig.h"
11-
#if defined(CONFIG_BT_ENABLED)
11+
#if defined(CONFIG_BLUEDROID_ENABLED)
1212
#include <esp_gattc_api.h>
1313

1414
#include <map>
@@ -123,5 +123,5 @@ class BLEAdvertisedDeviceCallbacks {
123123
virtual void onResult(BLEAdvertisedDevice advertisedDevice) = 0;
124124
};
125125

126-
#endif /* CONFIG_BT_ENABLED */
126+
#endif /* CONFIG_BLUEDROID_ENABLED */
127127
#endif /* COMPONENTS_CPP_UTILS_BLEADVERTISEDDEVICE_H_ */

libraries/BLE/src/BLEAdvertising.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919
#include "sdkconfig.h"
20-
#if defined(CONFIG_BT_ENABLED)
20+
#if defined(CONFIG_BLUEDROID_ENABLED)
2121
#include "BLEAdvertising.h"
2222
#include <esp_err.h>
2323
#include "BLEUtils.h"
@@ -518,4 +518,4 @@ void BLEAdvertising::handleGAPEvent(
518518
}
519519

520520

521-
#endif /* CONFIG_BT_ENABLED */
521+
#endif /* CONFIG_BLUEDROID_ENABLED */

libraries/BLE/src/BLEAdvertising.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef COMPONENTS_CPP_UTILS_BLEADVERTISING_H_
99
#define COMPONENTS_CPP_UTILS_BLEADVERTISING_H_
1010
#include "sdkconfig.h"
11-
#if defined(CONFIG_BT_ENABLED)
11+
#if defined(CONFIG_BLUEDROID_ENABLED)
1212
#include <esp_gap_ble_api.h>
1313
#include "BLEUUID.h"
1414
#include <vector>
@@ -76,5 +76,5 @@ class BLEAdvertising {
7676
bool m_scanResp = true;
7777

7878
};
79-
#endif /* CONFIG_BT_ENABLED */
79+
#endif /* CONFIG_BLUEDROID_ENABLED */
8080
#endif /* COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ */

0 commit comments

Comments
 (0)