diff options
| author | Erik Bånvik <[email protected]> | 2024-03-05 15:01:05 +0100 |
|---|---|---|
| committer | Erik Bånvik <[email protected]> | 2024-03-05 15:01:05 +0100 |
| commit | bb73d6b3fe81f26cb527d45bd700d2aef9b07090 (patch) | |
| tree | 502275cdc4c7ea8281e79c10f0b5fc7b5e1aa67b /embassy-nrf/src/util.rs | |
| parent | 5b5d54c0c75e8a7fbe5370af4932c9845f4ce123 (diff) | |
Fixed suggestions, added nRF51 to BLE
Diffstat (limited to 'embassy-nrf/src/util.rs')
| -rw-r--r-- | embassy-nrf/src/util.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/embassy-nrf/src/util.rs b/embassy-nrf/src/util.rs index 6cdb97f08..13aba7dec 100644 --- a/embassy-nrf/src/util.rs +++ b/embassy-nrf/src/util.rs | |||
| @@ -34,7 +34,6 @@ pub(crate) fn slice_in_ram<T>(slice: *const [T]) -> bool { | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /// Return an error if slice is not in RAM. Skips check if slice is zero-length. | 36 | /// Return an error if slice is not in RAM. Skips check if slice is zero-length. |
| 37 | #[cfg(not(feature = "nrf51"))] | ||
| 38 | pub(crate) fn slice_in_ram_or<T, E>(slice: *const [T], err: E) -> Result<(), E> { | 37 | pub(crate) fn slice_in_ram_or<T, E>(slice: *const [T], err: E) -> Result<(), E> { |
| 39 | let (_, len) = slice_ptr_parts(slice); | 38 | let (_, len) = slice_ptr_parts(slice); |
| 40 | if len == 0 || slice_in_ram(slice) { | 39 | if len == 0 || slice_in_ram(slice) { |
