From 695e35224d1c23e207125f6b27fdca1cedde4355 Mon Sep 17 00:00:00 2001 From: Johann Hemmann Date: Tue, 22 Feb 2022 13:20:10 +0100 Subject: [PATCH] Don't bail, but only warn if using `--no-flash` with defmt. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6c6a54e7..053cb04b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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");