diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 21:40:54 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 21:40:54 +0200 |
| commit | 860b519f9993bd8991849c680aae058558aadfbd (patch) | |
| tree | a0f815620d3be788cb69f0c97c6e42480ee24bae /examples/stm32f3/src/bin | |
| parent | 18d14dff48d1fd49cfd43fb94304bf932a74a6ca (diff) | |
Let Flash<Async/Blocking> be a thing
Diffstat (limited to 'examples/stm32f3/src/bin')
| -rw-r--r-- | examples/stm32f3/src/bin/flash.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f3/src/bin/flash.rs b/examples/stm32f3/src/bin/flash.rs index 9a31b548d..2432a29d2 100644 --- a/examples/stm32f3/src/bin/flash.rs +++ b/examples/stm32f3/src/bin/flash.rs | |||
| @@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) { | |||
| 14 | 14 | ||
| 15 | const ADDR: u32 = 0x26000; | 15 | const ADDR: u32 = 0x26000; |
| 16 | 16 | ||
| 17 | let mut f = Flash::new_blocking_only(p.FLASH).into_blocking_regions().bank1_region; | 17 | let mut f = Flash::new_blocking(p.FLASH).into_blocking_regions().bank1_region; |
| 18 | 18 | ||
| 19 | info!("Reading..."); | 19 | info!("Reading..."); |
| 20 | let mut buf = [0u8; 8]; | 20 | let mut buf = [0u8; 8]; |
