diff --git a/lib/libesp32_div/NimBLE-Arduino/src/nimconfig.h b/lib/libesp32_div/NimBLE-Arduino/src/nimconfig.h index 945ce042c3d4..9d991ae212dd 100644 --- a/lib/libesp32_div/NimBLE-Arduino/src/nimconfig.h +++ b/lib/libesp32_div/NimBLE-Arduino/src/nimconfig.h @@ -149,6 +149,12 @@ End Arduino user-config **********************************/ +#ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE +#define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 4096 +#endif + +#ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL // means for Tasmota: nimble was already embedded into the Arduino framework + /* This section should not be altered */ #ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED #define CONFIG_BT_NIMBLE_ROLE_CENTRAL @@ -170,10 +176,6 @@ #define CONFIG_BT_NIMBLE_PINNED_TO_CORE 0 #endif -#ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE -#define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 4096 -#endif - #ifndef CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL #define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL 1 #endif @@ -324,9 +326,12 @@ #define CONFIG_BT_NIMBLE_ROLE_BROADCASTER #endif +#endif //CONFIG_BT_NIMBLE_ROLE_CENTRAL + /* Enables the use of Arduino String class for attribute values */ #if defined __has_include # if __has_include () # define NIMBLE_CPP_ARDUINO_STRING_AVAILABLE # endif #endif +