From 33a7a6a095eaf7909121d0baec2f77022381d4a5 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Mon, 21 Mar 2022 14:07:21 +0100 Subject: Nimble: Enable optional debug output via RTT This allows better debugging of the bluetooth stack. --- src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h') diff --git a/src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h b/src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h index 03904610..5b0ef45c 100644 --- a/src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h +++ b/src/libs/mynewt-nimble/porting/nimble/include/modlog/modlog.h @@ -20,7 +20,8 @@ #ifndef H_MODLOG_ #define H_MODLOG_ -#include +#include "SEGGER_RTT.h" +#define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__) #include "log_common/log_common.h" #include "log/log.h" -- cgit v1.2.3