Skip to content

Commit b7aabc8

Browse files
committed
Cleanup redefinition warnings for arduino core 3.3+
1 parent 9caef4c commit b7aabc8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/nimconfig.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@
251251
#endif
252252

253253
#ifdef CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT // backward compatibility
254-
#define CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
255-
#elif !defined(CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT)
256-
#define CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT 12
254+
#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
255+
#else
256+
#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT 12
257257
#endif
258258

259259
#ifndef CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE
@@ -286,7 +286,9 @@
286286
#define CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN 31
287287

288288
/** @brief ACL Buffer count */
289+
#ifndef CONFIG_BT_NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT
289290
#define CONFIG_BT_NIMBLE_TRANSPORT_ACL_FROM_LL_COUNT 12
291+
#endif
290292

291293
/** @brief ACL Buffer size */
292294
#define CONFIG_BT_NIMBLE_TRANSPORT_ACL_SIZE 255

0 commit comments

Comments
 (0)