pre_build.py: remove CONFIG_BT_ENABLED from sdkconfig patching (fixes BT pre-init conflict with USB)

This commit is contained in:
ash
2026-06-30 12:34:00 +00:00
parent e2db658037
commit 8515963e07
2 changed files with 6 additions and 6 deletions
+3 -2
View File
@@ -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
View File
@@ -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();