mirror of https://github.com/arendst/Tasmota.git
fix conflicting log_level definitions (#21337)
This commit is contained in:
parent
1d7498d0b8
commit
fffb43fa79
|
@ -38,6 +38,19 @@
|
|||
# define NIMBLE_LOGC(tag, format, ...) \
|
||||
NIMBLE_CPP_LOG_PRINT(ESP_LOG_ERROR, tag, format, ##__VA_ARGS__)
|
||||
|
||||
// These defines pollute the global namespace and conflict with Tasmota and basically always turn on `seriallog 3`
|
||||
#ifdef LOG_LEVEL_DEBUG
|
||||
#undef LOG_LEVEL_DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef LOG_LEVEL_INFO
|
||||
#undef LOG_LEVEL_INFO
|
||||
#endif
|
||||
|
||||
#ifdef LOG_LEVEL_ERROR
|
||||
#undef LOG_LEVEL_ERROR
|
||||
#endif
|
||||
|
||||
#else // using Arduino
|
||||
# include "nimble/porting/nimble/include/syscfg/syscfg.h"
|
||||
# include "nimble/console/console.h"
|
||||
|
|
|
@ -60,13 +60,6 @@
|
|||
|
||||
#define XSNS_62 62
|
||||
|
||||
// undefine "trash" from the NimBLE stack, that collides with Tasmotas enum
|
||||
#undef LOG_LEVEL_DEBUG
|
||||
#undef LOG_LEVEL_NONE
|
||||
#undef LOG_LEVEL_ERROR
|
||||
#undef LOG_LEVEL_INFO
|
||||
#undef LOG_LEVEL_DEBUG
|
||||
#undef LOG_LEVEL_DEBUG_MORE
|
||||
#include <vector>
|
||||
#include "freertos/ringbuf.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue