mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
Fix IDF compiler warnings
This commit is contained in:
parent
02357d04d8
commit
7983c0e50e
1 changed files with 6 additions and 6 deletions
|
@ -9,27 +9,27 @@
|
||||||
/* Detect if using ESP-IDF or Arduino (Arduino won't have these defines in sdkconfig)*/
|
/* Detect if using ESP-IDF or Arduino (Arduino won't have these defines in sdkconfig)*/
|
||||||
#if defined(CONFIG_BT_NIMBLE_TASK_STACK_SIZE) || defined(CONFIG_NIMBLE_TASK_STACK_SIZE)
|
#if defined(CONFIG_BT_NIMBLE_TASK_STACK_SIZE) || defined(CONFIG_NIMBLE_TASK_STACK_SIZE)
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_ENABLED)
|
#if defined(CONFIG_NIMBLE_ENABLED) && !defined(CONFIG_BT_NIMBLE_ENABLED)
|
||||||
#define CONFIG_BT_NIMBLE_ENABLED
|
#define CONFIG_BT_NIMBLE_ENABLED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_ROLE_OBSERVER)
|
#if defined(CONFIG_NIMBLE_ROLE_OBSERVER) && !defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
|
||||||
#define CONFIG_BT_NIMBLE_ROLE_OBSERVER
|
#define CONFIG_BT_NIMBLE_ROLE_OBSERVER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_ROLE_BROADCASTER)
|
#if defined(CONFIG_NIMBLE_ROLE_BROADCASTER) && !defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
|
||||||
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
|
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_ROLE_CENTRAL)
|
#if defined(CONFIG_NIMBLE_ROLE_CENTRAL) && !defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)
|
||||||
#define CONFIG_BT_NIMBLE_ROLE_CENTRAL
|
#define CONFIG_BT_NIMBLE_ROLE_CENTRAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_ROLE_PERIPHERAL)
|
#if defined(CONFIG_NIMBLE_ROLE_PERIPHERAL) && !defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
|
||||||
#define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL
|
#define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NIMBLE_DEBUG)
|
#if defined(CONFIG_NIMBLE_DEBUG) && !defined(CONFIG_BT_NIMBLE_DEBUG)
|
||||||
#define CONFIG_BT_NIMBLE_DEBUG
|
#define CONFIG_BT_NIMBLE_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue