Skip to content

Commit b3fa8bf

Browse files
committed
BLE support for arduino-esp32 3.3.0
1 parent f85f2e3 commit b3fa8bf

20 files changed

+42
-22
lines changed

src/MIDI_Interfaces/BLEMIDI/ESP32-NimBLE/advertise.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
44

55
#include "ble.h"
66

src/MIDI_Interfaces/BLEMIDI/ESP32-NimBLE/app.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
44

55
#include "ble.h"
66

src/MIDI_Interfaces/BLEMIDI/ESP32-NimBLE/events.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
44

55
#include "advertise.hpp"
66
#include "callbacks.h"

src/MIDI_Interfaces/BLEMIDI/ESP32-NimBLE/gatt.c.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
44

55
#include "ble.h"
66

src/MIDI_Interfaces/BLEMIDI/ESP32-NimBLE/init.ipp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
44

55
#include "ble.h"
66

@@ -43,7 +43,9 @@ inline bool init_hardware() {
4343
ESP_ERROR_CHECK(esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT));
4444
ESP_ERROR_CHECK(esp_bt_controller_init(&bt_cfg));
4545
ESP_ERROR_CHECK(esp_bt_controller_enable(ESP_BT_MODE_BLE));
46+
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 3, 0)
4647
ESP_ERROR_CHECK(esp_nimble_hci_init());
48+
#endif
4749
#endif
4850

4951
#if CS_MIDI_BLE_ESP_IDF_NIMBLE

src/MIDI_Interfaces/BLEMIDI/ESP32/advertising.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED
44

55
#include "advertising.h"
66
#include "logging.h"

src/MIDI_Interfaces/BLEMIDI/ESP32/app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED
44

55
#include "advertising.h"
66
#include "app.h"

src/MIDI_Interfaces/BLEMIDI/ESP32/ble2902.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED
44

55
#include "app.h"
66
#include "ble2902.h"

src/MIDI_Interfaces/BLEMIDI/ESP32/esp_enums2string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED
44

55
#include "esp_enums2string.h"
66

src/MIDI_Interfaces/BLEMIDI/ESP32/events-debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef ESP32
22
#include <sdkconfig.h>
3-
#if CONFIG_BT_BLE_ENABLED
3+
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_BLUEDROID_ENABLED
44

55
#include "events-debug.h"
66
#include "esp_enums2string.h"

0 commit comments

Comments
 (0)