Skip to content

Commit ad12a48

Browse files
committed
Fix build error when using platformio library
1 parent 09297fb commit ad12a48

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esp-nimble-cpp",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "C++ wrapper for the NimBLE BLE stack",
55
"keywords": [
66
"BLE",

src/NimBLEUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
# include <climits>
3838

3939
# if defined INC_FREERTOS_H
40+
# ifndef CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT
41+
# define CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT 31
42+
# endif
4043
constexpr uint32_t TASK_BLOCK_BIT = (1 << CONFIG_NIMBLE_CPP_FREERTOS_TASK_BLOCK_BIT);
4144
# endif
4245

0 commit comments

Comments
 (0)