You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I interpret this to be executing the following logic if the value of the macro LOG_LOCAL_LEVEL is greater or equal to the value of the macro ESP_LOG_INFO. That sounds fair. However, the macro ESP_LOG_INFO is not defined. Instead, we have a typedef at:
typedef enum {
ESP_LOG_NONE, /*!< No log output */
ESP_LOG_ERROR, /*!< Critical errors, software module can not recover on its own */
ESP_LOG_WARN, /*!< Error conditions from which recovery measures have been taken */
ESP_LOG_INFO, /*!< Information messages which describe normal flow of events */
ESP_LOG_DEBUG, /*!< Extra information which is not necessary for normal use (values, pointers, sizes, etc). */
ESP_LOG_VERBOSE /*!< Bigger chunks of debugging information, or frequent messages which can potentially flood the output. */
} esp_log_level_t;
It is my naive belief that the C pre-processor doesn't know anything about typedefs or variables. How could this possible work?
The text was updated successfully, but these errors were encountered:
I'm having some issues compiling with esp_log.h and am stumped by what I am finding.
If we look here:
https://github.com/espressif/esp-idf/blob/master/components/log/include/esp_log.h#L164
We find the following definition:
I interpret this to be executing the following logic if the value of the macro
LOG_LOCAL_LEVEL
is greater or equal to the value of the macroESP_LOG_INFO
. That sounds fair. However, the macroESP_LOG_INFO
is not defined. Instead, we have a typedef at:https://github.com/espressif/esp-idf/blob/master/components/log/include/esp_log.h#L35
That looks as follows:
It is my naive belief that the C pre-processor doesn't know anything about typedefs or variables. How could this possible work?
The text was updated successfully, but these errors were encountered: