Do not build FreeRtosMonitor when logging is not enabled.

This commit is contained in:
Jean-François Milants 2022-01-04 10:59:57 +01:00
parent a162ec67ce
commit f7e01c5143

View File

@ -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<FreeRtosMonitor> monitor;
#else
SystemMonitor<DummyMonitor> monitor;