diff --git a/examples/platforms/utils/uart_rtt.c b/examples/platforms/utils/uart_rtt.c index 9b682aa71..b5a42e09a 100644 --- a/examples/platforms/utils/uart_rtt.c +++ b/examples/platforms/utils/uart_rtt.c @@ -40,12 +40,12 @@ #include #include +#if OPENTHREAD_UART_RTT_ENABLE + #include "SEGGER_RTT.h" #include "uart.h" #include "uart_rtt.h" -#if OPENTHREAD_UART_RTT_ENABLE - static bool sUartInitialized = false; static bool sUartPendingUp = false;