[cli] fix RTT compiling issue (#9385)

If macro OPENTHREAD_UART_RTT_ENABLE is not enabled, the file
SEGGER_RTT.h and related should not be included.
This commit is contained in:
Zhangwx
2023-08-30 13:25:33 -07:00
committed by GitHub
parent e4d953c9bf
commit 4ae691476f
+2 -2
View File
@@ -40,12 +40,12 @@
#include <utils/code_utils.h>
#include <openthread/error.h>
#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;