nrf: rename Cargo feature references from "51" to "nrf51".

Note: the feature doesn't actually exist, references are there just in case
nrf51xx is supported in the future.
This commit is contained in:
Dario Nieuwenhuis
2021-10-11 01:09:57 +02:00
parent 34637bf2d0
commit 6e7abba9ff
3 changed files with 14 additions and 14 deletions

View File

@ -8,7 +8,7 @@ pub(crate) fn slice_in_ram(slice: &[u8]) -> bool {
}
/// Return an error if slice is not in RAM.
#[cfg(not(feature = "51"))]
#[cfg(not(feature = "nrf51"))]
pub(crate) fn slice_in_ram_or<T>(slice: &[u8], err: T) -> Result<(), T> {
if slice.len() == 0 || slice_in_ram(slice) {
Ok(())