Skip to content

Commit 1407654

Browse files
committed
Must include sdkconfig.h before testing defines
1 parent c66a020 commit 1407654

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

libraries/SimpleBLE/examples/SimpleBleDevice/SimpleBleDevice.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
// Useful if you want to advertise some sort of message
1717
// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed
1818

19+
#include "SimpleBLE.h"
20+
1921
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
2022
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
2123
#endif
2224

23-
#include "SimpleBLE.h"
2425
SimpleBLE ble;
2526

2627
void onButton(){

libraries/SimpleBLE/src/SimpleBLE.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include "sdkconfig.h"
16+
1517
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1618

1719
#include "SimpleBLE.h"

libraries/SimpleBLE/src/SimpleBLE.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#ifndef _SIMPLE_BLE_H_
1616
#define _SIMPLE_BLE_H_
1717

18+
#include "sdkconfig.h"
19+
1820
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1921

2022
#include <cstdint>

0 commit comments

Comments
 (0)