fix format

This commit is contained in:
Mirabellensaft 2022-01-12 18:05:55 +01:00
parent 5be260503a
commit eec0e0a6bb

View file

@ -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)