Fix h7 compile error
This commit is contained in:
		
							parent
							
								
									a0d089536a
								
							
						
					
					
						commit
						fc8c83e00a
					
				| @ -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> { | 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; |     let sector = sector.index % 8; | ||||||
|     bank.cr().modify(|w| { |     bank.cr().modify(|w| { | ||||||
|         w.set_ser(true); |         w.set_ser(true); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user