diff options
| author | Chris Storah <[email protected]> | 2025-07-23 15:55:14 +1000 |
|---|---|---|
| committer | Chris Storah <[email protected]> | 2025-07-23 15:55:14 +1000 |
| commit | 420cbb437fb37a0679859a459ed3b45239b60467 (patch) | |
| tree | 1dc9097e7312c2a37ab65ec64d0e793cfd22e621 | |
| parent | 487b42f62cd11292d421831a8943de01b2b25a39 (diff) | |
Fix formatting of u5 file
| -rw-r--r-- | embassy-stm32/src/flash/u5.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/embassy-stm32/src/flash/u5.rs b/embassy-stm32/src/flash/u5.rs index 2d06fdc67..6c3d4b422 100644 --- a/embassy-stm32/src/flash/u5.rs +++ b/embassy-stm32/src/flash/u5.rs | |||
| @@ -93,13 +93,9 @@ pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), E | |||
| 93 | 93 | ||
| 94 | let ret: Result<(), Error> = blocking_wait_ready(); | 94 | let ret: Result<(), Error> = blocking_wait_ready(); |
| 95 | #[cfg(feature = "trustzone-secure")] | 95 | #[cfg(feature = "trustzone-secure")] |
| 96 | pac::FLASH | 96 | pac::FLASH.seccr().modify(|w| w.set_per(false)); |
| 97 | .seccr() | ||
| 98 | .modify(|w| w.set_per(false)); | ||
| 99 | #[cfg(not(feature = "trustzone-secure"))] | 97 | #[cfg(not(feature = "trustzone-secure"))] |
| 100 | pac::FLASH | 98 | pac::FLASH.nscr().modify(|w| w.set_per(false)); |
| 101 | .nscr() | ||
| 102 | .modify(|w| w.set_per(false)); | ||
| 103 | clear_all_err(); | 99 | clear_all_err(); |
| 104 | ret | 100 | ret |
| 105 | } | 101 | } |
