mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user