Add missing nightly guards
This commit is contained in:
parent
7477785bbb
commit
cdb1447569
@ -139,6 +139,7 @@ mod alt_regions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(feature = "nightly"))]
|
||||||
impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> {
|
impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> {
|
||||||
const READ_SIZE: usize = READ_SIZE;
|
const READ_SIZE: usize = READ_SIZE;
|
||||||
|
|
||||||
@ -151,6 +152,7 @@ mod alt_regions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(feature = "nightly"))]
|
||||||
impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> {
|
impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> {
|
||||||
const WRITE_SIZE: usize = $region.write_size as usize;
|
const WRITE_SIZE: usize = $region.write_size as usize;
|
||||||
const ERASE_SIZE: usize = $region.erase_size as usize;
|
const ERASE_SIZE: usize = $region.erase_size as usize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user