mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-02-10 14:42:19 +00:00
fix format
This commit is contained in:
parent
5be260503a
commit
eec0e0a6bb
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ fn main() -> ! {
|
||||||
buffer.push(b'i').expect("buffer full");
|
buffer.push(b'i').expect("buffer full");
|
||||||
|
|
||||||
// look into the contents so far
|
// 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
|
// or more readable
|
||||||
// NOTE utf-8 conversion works as long as you only push bytes in the ASCII range (0..=127)
|
// NOTE utf-8 conversion works as long as you only push bytes in the ASCII range (0..=127)
|
||||||
|
|
Loading…
Reference in a new issue