From 449841f81994b0a863cd2c017a613cdcc369a815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Mi=C5=9B?= Date: Tue, 27 Jun 2017 18:14:03 +0200 Subject: [PATCH] [nRF52840] Enable default logging option for certification tests. (#1940) --- examples/Makefile-nrf52840 | 4 ++++ examples/platforms/nrf52840/platform.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 }