pre_build.py: remove CONFIG_BT_ENABLED from sdkconfig patching (fixes BT pre-init conflict with USB)
This commit is contained in:
+3
-2
@@ -70,8 +70,9 @@ def patch_sdkconfig_bt():
|
||||
content = f.read()
|
||||
|
||||
defines = {
|
||||
"CONFIG_BT_ENABLED": 1,
|
||||
"CONFIG_BT_NIMBLE_ENABLED": 1,
|
||||
# Do NOT set CONFIG_BT_ENABLED here — that forces the Arduino
|
||||
# framework to pre-init the BT controller at startup, which
|
||||
# conflicts with USB. NimBLEDevice::init() handles its own init.
|
||||
"CONFIG_BTDM_CTRL_MODE_BLE_ONLY": 1,
|
||||
"CONFIG_BT_NIMBLE_MAX_CONNECTIONS": 1,
|
||||
"CONFIG_BT_NIMBLE_TASK_STACK_SIZE": 6144,
|
||||
|
||||
+3
-4
@@ -346,10 +346,9 @@ void setup() {
|
||||
switch_driver.set_mux(&mux);
|
||||
switch_driver.begin();
|
||||
|
||||
// BLE disabled for crash diagnosis
|
||||
// Serial.println("[INIT] Initializing BLE MIDI...");
|
||||
// delay(1000);
|
||||
// ble_midi_transport.begin();
|
||||
Serial.println("[INIT] Initializing BLE MIDI...");
|
||||
delay(1000);
|
||||
ble_midi_transport.begin();
|
||||
|
||||
Serial.println("[INIT] Initializing USB MIDI...");
|
||||
midi_transport.begin();
|
||||
|
||||
Reference in New Issue
Block a user