From fc8c83e00ad6ec810bc73e750e8e943b3e725156 Mon Sep 17 00:00:00 2001 From: Rasmus Melchior Jacobsen Date: Wed, 29 Mar 2023 14:50:19 +0200 Subject: [PATCH] Fix h7 compile error --- embassy-stm32/src/flash/h7.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/flash/h7.rs b/embassy-stm32/src/flash/h7.rs index 28999999..82dd4b28 100644 --- a/embassy-stm32/src/flash/h7.rs +++ b/embassy-stm32/src/flash/h7.rs @@ -79,7 +79,7 @@ pub(crate) unsafe fn blocking_write(start_address: u32, buf: &[u8; WRITE_SIZE]) } pub(crate) unsafe fn blocking_erase_sector(sector: &FlashSector) -> Result<(), Error> { - let bank = pac::FLASH::bank(if sector.index >= 8 { 1 } else { 0 }); + let bank = pac::FLASH.bank(if sector.index >= 8 { 1 } else { 0 }); let sector = sector.index % 8; bank.cr().modify(|w| { w.set_ser(true);