esp-nimble
esp-nimble copied to clipboard
LOG_LEVEL defines collision
At log_common.h
we have defined:
#define LOG_LEVEL_DEBUG (0)
#define LOG_LEVEL_INFO (1)
#define LOG_LEVEL_WARN (2)
#define LOG_LEVEL_ERROR (3)
#define LOG_LEVEL_CRITICAL (4)
#define LOG_LEVEL_NONE (5)
LOG_LEVEL..
names are very common and I have redefinition issues when another than NibBle logger is used.
Because its internal NibBle logger, proposed to use some internal names like:
BLE_LOG_LEVEL..
or NIM_BLE_LOG_LEVEL..
Hi @vovagorodok ,
ESP-IDF clones upstream mynewt-nimble and we try to be in sync with upstream code. This file is actually coming from upstream nimble code. i suggest you to also open a ticket here .
Thanks, Rahul
Done, lets wait for response: https://github.com/apache/mynewt-nimble/issues/1416
Hi, done from apache side. Lets align esp-nimble repo now :)
@rahult-github what plans on this topic?
I have the exact same problems with colliding defines and would like to see this solved.
@rahult-github there is some issue with merging upstream? Can I help somehow?
Hi @vovagorodok , sorry for delay.
Current nimble version of IDF is 1.5.0 .. Backporting the patch to this branch has more changes than anticipated. We are in process of migrating to IDF 1.6.0. So the patch will be applied once we migrate. Also, we will backport it for nimble-1.5.0-idf too. Will update here soon for this.
In meantime, i will rework on the backporting of the patch and share it here for your usage, that will help unblock you untill it makes way to official IDF github code