summaryrefslogtreecommitdiff
path: root/nrf-softdevice
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@redhat.com>2022-02-01 13:31:22 +0100
committerUlf Lilleengen <lulf@redhat.com>2022-02-01 13:31:22 +0100
commit659f6398637077439175333f5996b53f8a45743b (patch)
treefa8f0dfbf12ed05776d1904239f6a59fe84850fb /nrf-softdevice
parentc63cb6359964926470e424fc899fa5e15612a5e6 (diff)
downloadnrf-softdevice-659f6398637077439175333f5996b53f8a45743b.zip
Update reference to embedded-storage
Diffstat (limited to 'nrf-softdevice')
-rw-r--r--nrf-softdevice/src/flash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nrf-softdevice/src/flash.rs b/nrf-softdevice/src/flash.rs
index ae9b935..2558712 100644
--- a/nrf-softdevice/src/flash.rs
+++ b/nrf-softdevice/src/flash.rs
@@ -72,7 +72,7 @@ impl AsyncReadNorFlash for Flash {
type Error = FlashError;
type ReadFuture<'a> = impl Future<Output = Result<(), FlashError>> + 'a;
- fn read<'a>(&'a mut self, address: usize, data: &'a mut [u8]) -> Self::ReadFuture<'a> {
+ fn read<'a>(&'a mut self, address: u32, data: &'a mut [u8]) -> Self::ReadFuture<'a> {
async move {
// Reading is simple since SoC flash is memory-mapped :)
// TODO check addr/len is in bounds.