From f7e01c5143de8d29d7458bc30066b08095096267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Milants?= Date: Tue, 4 Jan 2022 10:59:57 +0100 Subject: [PATCH] Do not build FreeRtosMonitor when logging is not enabled. --- src/systemtask/SystemTask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h index e2e6de7f..cfad77a9 100644 --- a/src/systemtask/SystemTask.h +++ b/src/systemtask/SystemTask.h @@ -147,7 +147,7 @@ namespace Pinetime { bool stepCounterMustBeReset = false; static constexpr TickType_t batteryMeasurementPeriod = pdMS_TO_TICKS(10 * 60 * 1000); -#if configUSE_TRACE_FACILITY == 1 +#if configUSE_TRACE_FACILITY == 1 && NRF_LOG_ENABLED == 1 SystemMonitor monitor; #else SystemMonitor monitor;