Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Don't bail, but only warn if using --no-flash with defmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Feb 22, 2022
1 parent 7f7883d commit 695e352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ fn extract_and_print_logs(
.map_or(false, |channel| channel.name() == Some("defmt"));

if use_defmt && opts.no_flash {
bail!(
"attempted to use `--no-flash` and `defmt` logging -- this combination is not allowed. Remove the `--no-flash` flag"
log::warn!(
"You are using `--no-flash` and `defmt` logging -- this combination can lead to malformed defmt data!"
);
} else if use_defmt && elf.defmt_table.is_none() {
bail!("\"defmt\" RTT channel is in use, but the firmware binary contains no defmt data");
Expand Down

0 comments on commit 695e352

Please # to comment.