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,
|
||||
|
||||
Reference in New Issue
Block a user