diff --git a/framework/system_settings.c b/framework/system_settings.c index 4767211..9b795ec 100644 --- a/framework/system_settings.c +++ b/framework/system_settings.c @@ -140,11 +140,13 @@ void systemsettings_mco_init(void) void systemsettings_debug_uart_init_deinit(void) { +#if USE_DEBUG_UART if (SystemSettings.enable_debug_uart) { DebugUart_Init(); } else { DebugUart_Teardown(); } +#endif } /**