configulator/include/cfglr_log.h

15 lines
274 B
C
Raw Normal View History

2024-07-31 15:51:12 -04:00
#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