Skip to content

Commit a30629e

Browse files
committed
Replace macro with esp_log_write.
Replace the ESP_LOG macro with esp_log_write, which is a better replacement for printf style logging.
1 parent c6440c0 commit a30629e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MicroOcpp/Platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ MO_EXTERN_C void mocpp_set_console_out(void (*console_out)(const char *msg));
7272
#elif MO_PLATFORM == MO_PLATFORM_ESPIDF
7373
#include "esp_log.h"
7474

75-
#define MO_CONSOLE_PRINTF(X, ...) ESP_LOGI("MicroOcpp", X, ##__VA_ARGS__)
75+
#define MO_CONSOLE_PRINTF(X, ...) esp_log_write(ESP_LOG_INFO, "MicroOcpp", X, ##__VA_ARGS__)
7676
#elif MO_PLATFORM == MO_PLATFORM_UNIX
7777
#include <stdio.h>
7878

0 commit comments

Comments
 (0)