Skip to content

Commit 8a8f87d

Browse files
Fix for BluetoothSerial build when using nimBLE instead of Bluedroid (#5920)
1 parent 082491d commit 8a8f87d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libraries/BluetoothSerial/src/BTAddress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Author: Thomas M. (ArcticSnowSky)
88
*/
99
#include "sdkconfig.h"
10-
#if defined(CONFIG_BT_ENABLED)
10+
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1111

1212
#include "BTAddress.h"
1313
#include <string>

libraries/BluetoothSerial/src/BTAddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef COMPONENTS_CPP_UTILS_BTADDRESS_H_
1111
#define COMPONENTS_CPP_UTILS_BTADDRESS_H_
1212
#include "sdkconfig.h"
13-
#if defined(CONFIG_BT_ENABLED)
13+
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1414
#include <esp_gap_bt_api.h> // ESP32 BT
1515
#include <string>
1616

libraries/BluetoothSerial/src/BTAdvertisedDeviceSet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "sdkconfig.h"
9-
#if defined(CONFIG_BT_ENABLED)
9+
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1010

1111
//#include <map>
1212

libraries/BluetoothSerial/src/BTScanResultsSet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
#include "sdkconfig.h"
9-
#if defined(CONFIG_BT_ENABLED)
9+
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1010

1111

1212
#include <esp_err.h>

0 commit comments

Comments
 (0)