diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-24 12:42:35 +0200 |
|---|---|---|
| committer | Rasmus Melchior Jacobsen <[email protected]> | 2023-05-25 13:04:47 +0200 |
| commit | ff3a70ed9debd1ce4075c0a28c90bb0c6e693bce (patch) | |
| tree | ad1ebf7e01a36e9d90b6aabf45e7e31c0b24bc16 /embassy-stm32 | |
| parent | 0a26870d363022a7d09500b6ecb28c0b455e81e7 (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; |
