diff --git a/examples/Makefile-nrf52840 b/examples/Makefile-nrf52840 index 1a44eb43d..3c7a0b408 100644 --- a/examples/Makefile-nrf52840 +++ b/examples/Makefile-nrf52840 @@ -79,6 +79,10 @@ COMMONCFLAGS := \ -I$(CONFIG_FILE_PATH) \ $(NULL) +ifeq ($(CERT_LOG),1) +COMMONCFLAGS += -DOPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT=1 +endif + CPPFLAGS += \ $(COMMONCFLAGS) \ $(target_CPPFLAGS) \ diff --git a/examples/platforms/nrf52840/platform.c b/examples/platforms/nrf52840/platform.c index 073497747..0f5ba4179 100644 --- a/examples/platforms/nrf52840/platform.c +++ b/examples/platforms/nrf52840/platform.c @@ -48,7 +48,7 @@ void PlatformInit(int argc, char *argv[]) nrf_drv_clock_init(); -#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0) +#if (OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT == 0) nrf5LogInit(); #endif nrf5AlarmInit(); @@ -67,7 +67,7 @@ void PlatformDeinit(void) nrf5UartDeinit(); nrf5RandomDeinit(); nrf5AlarmDeinit(); -#if (OPENTHREAD_ENABLE_DEFAULT_LOGGING == 0) +#if (OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT == 0) nrf5LogDeinit(); #endif }