configulator/include/cfglr_log.h
2024-07-31 12:51:12 -07:00

14 lines
274 B
C

#ifndef _CFGLR_LOG_H_
#define _CFGLR_LOG_H_
#ifdef ESP_PLATFORM
#include "esp_log.h"
#include "cfglr_nvs.h"
#define CFGLR_LOGI(TAG, STR, ...) ESP_LOGI(TAG, STR, ##__VA_ARGS__)
#else
#define CFGLR_LOGI(TAG, STR, ...) print(TAG); printf(STR, ##__VA_ARGS__);
#endif
#endif