From ad12a48e9ebde28711fd36af0db326a4b9ca141b Mon Sep 17 00:00:00 2001 From: h2zero Date: Tue, 24 Dec 2024 11:21:41 -0700 Subject: [PATCH] Fix build error when using platformio library --- library.json | 2 +- src/NimBLEUtils.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/library.json b/library.json index af59c5b..e9e6dda 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "esp-nimble-cpp", - "version": "2.0.1", + "version": "2.0.2", "description": "C++ wrapper for the NimBLE BLE stack", "keywords": [ "BLE", diff --git a/src/NimBLEUtils.cpp b/src/NimBLEUtils.cpp index f447ff0..6e9f771 100644 --- a/src/NimBLEUtils.cpp +++ b/src/NimBLEUtils.cpp @@ -37,6 +37,9 @@ # include # if defined INC_FREERTOS_H +# ifndef CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT +# define CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT 31 +# endif constexpr uint32_t TASK_BLOCK_BIT = (1 << CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT); # endif