diff options
author | Ulf Lilleengen <lulf@redhat.com> | 2022-02-01 13:53:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 13:53:34 +0100 |
commit | a7cb812c853ae53df606ced49f920f1ab6201288 (patch) | |
tree | fa8f0dfbf12ed05776d1904239f6a59fe84850fb /nrf-softdevice | |
parent | c63cb6359964926470e424fc899fa5e15612a5e6 (diff) | |
parent | 659f6398637077439175333f5996b53f8a45743b (diff) | |
download | nrf-softdevice-a7cb812c853ae53df606ced49f920f1ab6201288.zip |
Merge pull request #98 from lulf/update-storage-ref
Update reference to embedded-storage
Diffstat (limited to 'nrf-softdevice')
-rw-r--r-- | nrf-softdevice/src/flash.rs | 2 |
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. |