From 3af9ee26cc44eb5d8bee564142fc3ad489db1bfe Mon Sep 17 00:00:00 2001 From: "@imrank03" Date: Mon, 9 Sep 2024 13:07:10 +0530 Subject: [PATCH 1/2] Disable the defmt feature in the BootInSuccessState --- boards/hal/src/rpi/rpi4/panic_wait.rs | 2 +- boards/update/src/update/update_flash.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/hal/src/rpi/rpi4/panic_wait.rs b/boards/hal/src/rpi/rpi4/panic_wait.rs index c352cb92..8546a1a4 100644 --- a/boards/hal/src/rpi/rpi4/panic_wait.rs +++ b/boards/hal/src/rpi/rpi4/panic_wait.rs @@ -75,7 +75,7 @@ fn panic(info: &PanicInfo) -> ! { location, line, column, - info.message().unwrap_or(&format_args!("")), + info.message(), ); cpu_core::wait_forever() diff --git a/boards/update/src/update/update_flash.rs b/boards/update/src/update/update_flash.rs index 81732e8e..67cf4601 100644 --- a/boards/update/src/update/update_flash.rs +++ b/boards/update/src/update/update_flash.rs @@ -321,7 +321,7 @@ where { match self.rustboot_update(true) { Err(_v) => { - #[cfg(feature = "defmt")] + // #[cfg(feature = "defmt")] panic!("all boot options exhausted") } // all boot options exhausted Ok(ref mut img) => { From 41a0d8ff86ebcded4ab6005736755162ea54325b Mon Sep 17 00:00:00 2001 From: "@imrank03" Date: Wed, 11 Sep 2024 10:18:07 +0530 Subject: [PATCH 2/2] Disable the defmt feature in the BootInSuccessState --- boards/update/src/update/update_flash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/update/src/update/update_flash.rs b/boards/update/src/update/update_flash.rs index 67cf4601..045cc3da 100644 --- a/boards/update/src/update/update_flash.rs +++ b/boards/update/src/update/update_flash.rs @@ -300,7 +300,7 @@ where { match self.rustboot_update(true) { Err(_v) => { - #[cfg(feature = "defmt")] + // #[cfg(feature = "defmt")] panic!("all boot options exhausted") } // all boot options exhausted Ok(ref mut img) => {