From eec0e0a6bb3e543cc1beddf55069f29a9190f9c6 Mon Sep 17 00:00:00 2001 From: Mirabellensaft Date: Wed, 12 Jan 2022 18:05:55 +0100 Subject: [PATCH] fix format --- beginner/apps/src/bin/radio-puzzle-4.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beginner/apps/src/bin/radio-puzzle-4.rs b/beginner/apps/src/bin/radio-puzzle-4.rs index 49fa4e0..1166e50 100644 --- a/beginner/apps/src/bin/radio-puzzle-4.rs +++ b/beginner/apps/src/bin/radio-puzzle-4.rs @@ -22,7 +22,9 @@ fn main() -> ! { buffer.push(b'i').expect("buffer full"); // look into the contents so far - defmt::println!("{:?}", buffer); + defmt::println!("{}", defmt::Debug2Format(&buffer)); + // ^^^^^^^^^^^^^^^^^^^ this adapter is currently needed to log + // `StandardRequest` with `defmt` // or more readable // NOTE utf-8 conversion works as long as you only push bytes in the ASCII range (0..=127)