"TAG" member of MetaType enum conflicts with ESP_IDF_LOG TAG macro definition #1875
-
audio-tools version : 1.0.1+sha.28a8df1 Line 102 of Note : not using the ESP IDF logger (i.e. using the Arduino one) alleviates the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please provide me a short example sketch so that I can reproduce your issue. #include "AudioTools.h"
MetaDataFilter filter;
void setup() {}
void loop() {} Where does your #define TAG come from ? Usually applications define their specific defines like #define BT_APP_CORE_TAG "BT_APP_CORE" Using such a unspecific #define is really a bad idea since defines are global! |
Beta Was this translation helpful? Give feedback.
-
Hi @pschatzmann, I actually revisited my code deeply and managed to get rid of the need for this general "TAG", I guess this issue could turn more into an information or discussion for others. One of the reasons for defining high level "TAG" raised from combining other libraries that did not have the necessary shielding (I was experimenting with redirecting ESP logs to an SD card instead of stdout). Some of the built-in libraries on slightly older versions of the Arduino core were calling for a general TAG... Using more recent ones expunges that problem. Ultimately this should serve as an indication for others should they encounter this conflict? |
Beta Was this translation helpful? Give feedback.
Please provide me a short example sketch so that I can reproduce your issue.
The following example compiles w/o problems for me with any core debug level:
Where does your #define TAG come from ? Usually applications define their specific defines like #define BT_APP_CORE_TAG "BT_APP_CORE"
Using such a unspecific #define is really a bad idea since defines are global!