aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/src/test_flash/asynch.rs
diff options
context:
space:
mode:
authorDavid Flemström <[email protected]>2024-06-28 19:10:59 +0200
committerDavid Flemström <[email protected]>2024-06-28 22:52:03 +0200
commitcbc67469d3faa65c4839657609b8e804bcfd75fd (patch)
treeccc41b4ffde2f49843f338127b26b032c9668dc8 /embassy-boot/src/test_flash/asynch.rs
parent26e660722cca9151e5a9331c328421145509ab20 (diff)
Route sources of panics to the crate's fmt macros
Diffstat (limited to 'embassy-boot/src/test_flash/asynch.rs')
-rw-r--r--embassy-boot/src/test_flash/asynch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-boot/src/test_flash/asynch.rs b/embassy-boot/src/test_flash/asynch.rs
index 3ac9e71ab..c67f2495c 100644
--- a/embassy-boot/src/test_flash/asynch.rs
+++ b/embassy-boot/src/test_flash/asynch.rs
@@ -43,7 +43,7 @@ where
43 } 43 }
44 44
45 fn create_partition<T: NorFlash>(mutex: &Mutex<NoopRawMutex, T>) -> Partition<NoopRawMutex, T> { 45 fn create_partition<T: NorFlash>(mutex: &Mutex<NoopRawMutex, T>) -> Partition<NoopRawMutex, T> {
46 Partition::new(mutex, 0, mutex.try_lock().unwrap().capacity() as u32) 46 Partition::new(mutex, 0, unwrap!(mutex.try_lock()).capacity() as u32)
47 } 47 }
48} 48}
49 49