diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-24 12:42:35 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 20:07:41 +0200 |
| commit | cdb14475696484d08d717194074c4d85cff5eb63 (patch) | |
| tree | efa9b04e481a30fce0b88744dfed688d7fd63d19 /embassy-stm32 | |
| parent | 7477785bbb469a1d8d3cf21a74fd61cb12f59640 (diff) | |
Add missing nightly guards
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/flash/f4.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/flash/f4.rs b/embassy-stm32/src/flash/f4.rs index 3c8f81eb0..9698bcd58 100644 --- a/embassy-stm32/src/flash/f4.rs +++ b/embassy-stm32/src/flash/f4.rs | |||
| @@ -139,6 +139,7 @@ mod alt_regions { | |||
| 139 | } | 139 | } |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | #[cfg(all(feature = "nightly"))] | ||
| 142 | impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> { | 143 | impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> { |
| 143 | const READ_SIZE: usize = READ_SIZE; | 144 | const READ_SIZE: usize = READ_SIZE; |
| 144 | 145 | ||
| @@ -151,6 +152,7 @@ mod alt_regions { | |||
| 151 | } | 152 | } |
| 152 | } | 153 | } |
| 153 | 154 | ||
| 155 | #[cfg(all(feature = "nightly"))] | ||
| 154 | impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> { | 156 | impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> { |
| 155 | const WRITE_SIZE: usize = $region.write_size as usize; | 157 | const WRITE_SIZE: usize = $region.write_size as usize; |
| 156 | const ERASE_SIZE: usize = $region.erase_size as usize; | 158 | const ERASE_SIZE: usize = $region.erase_size as usize; |
