Open 90degs2infty opened 1 year ago
According to defmt_brtt's docs, one has to initialize defmt_brtt before using it:
defmt_brtt
You must also, somewhere in your code before calling any defmt logging function, call the defmt_brtt::init! macro. fn main() { let _ = defmt_brtt::init!(); }
You must also, somewhere in your code before calling any defmt logging function, call the defmt_brtt::init! macro.
defmt_brtt::init!
fn main() { let _ = defmt_brtt::init!(); }
This template's init task currently reads:
init
#[init] fn init(cx: init::Context) -> (Shared, Local) { defmt::info!("init"); // .... }
Is there a reason why the initialization is skipped? Or is it not necessary in the first place? It apparently works without the initialization, but I'm a little puzzled by the docs, still.
According to
defmt_brtt
's docs, one has to initializedefmt_brtt
before using it:This template's
init
task currently reads:Is there a reason why the initialization is skipped? Or is it not necessary in the first place? It apparently works without the initialization, but I'm a little puzzled by the docs, still.