summaryrefslogtreecommitdiff
path: root/nrf-softdevice
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@redhat.com>2022-02-01 13:53:34 +0100
committerGitHub <noreply@github.com>2022-02-01 13:53:34 +0100
commita7cb812c853ae53df606ced49f920f1ab6201288 (patch)
treefa8f0dfbf12ed05776d1904239f6a59fe84850fb /nrf-softdevice
parentc63cb6359964926470e424fc899fa5e15612a5e6 (diff)
parent659f6398637077439175333f5996b53f8a45743b (diff)
downloadnrf-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.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.