From d7cc36d2375f9e3d7082765f4f781e10b43d051c Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Wed, 24 Jun 2020 11:31:47 +0200 Subject: [PATCH] boards/dk/src/lib.rs: increase rtt bufsz, set mode to blocking for beginner --- boards/dk/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boards/dk/src/lib.rs b/boards/dk/src/lib.rs index a58f511..8475bd8 100644 --- a/boards/dk/src/lib.rs +++ b/boards/dk/src/lib.rs @@ -177,7 +177,10 @@ pub fn init() -> Result { // NOTE this must be executed as early as possible or the tool will timeout // NOTE the unsafety of this macro is incorrect; it must be run at most once - rtt_init_print!(NoBlockSkip, 2048); + #[cfg(feature = "beginner")] + rtt_init_print!(BlockIfFull, 4096); + #[cfg(feature = "advanced")] + rtt_init_print!(NoBlockSkip, 4096); log::set_logger(&Logger).unwrap();