Fix build error when using platformio library

This commit is contained in:
h2zero 2024-12-24 11:21:41 -07:00 committed by Ryan Powell
parent 09297fb72a
commit ad12a48e9e
2 changed files with 4 additions and 1 deletions

View file

@ -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",

View file

@ -37,6 +37,9 @@
# include <climits>
# 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