Initial public release of the 2024A software.
This commit is contained in:
parent
7b9ad3edfd
commit
303e9e1dad
361 changed files with 60083 additions and 2 deletions
26
managed_components/chmorgan__esp-audio-player/audio_log.h
Normal file
26
managed_components/chmorgan__esp-audio-player/audio_log.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include "esp_log.h"
|
||||
|
||||
#if CONFIG_AUDIO_PLAYER_LOG_LEVEL >= 1
|
||||
#define LOGI_1(FMT, ...) \
|
||||
ESP_LOGI(TAG, "[1] " FMT, ##__VA_ARGS__)
|
||||
#else
|
||||
#define LOGI_1(FMT, ...) { (void)TAG; }
|
||||
#endif
|
||||
|
||||
#if CONFIG_AUDIO_PLAYER_LOG_LEVEL >= 2
|
||||
#define LOGI_2(FMT, ...) \
|
||||
ESP_LOGI(TAG, "[2] " FMT, ##__VA_ARGS__)
|
||||
#else
|
||||
#define LOGI_2(FMT, ...) { (void)TAG;}
|
||||
#endif
|
||||
|
||||
#if CONFIG_AUDIO_PLAYER_LOG_LEVEL >= 3
|
||||
#define LOGI_3(FMT, ...) \
|
||||
ESP_LOGI(TAG, "[3] " FMT, ##__VA_ARGS__)
|
||||
#define COMPILE_3(x) x
|
||||
#else
|
||||
#define LOGI_3(FMT, ...) { (void)TAG; }
|
||||
#define COMPILE_3(x) {}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue