summaryrefslogtreecommitdiff
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
parentc63cb6359964926470e424fc899fa5e15612a5e6 (diff)
downloadnrf-softdevice-659f6398637077439175333f5996b53f8a45743b.zip
Update reference to embedded-storage
-rw-r--r--Cargo.lock8
-rw-r--r--nrf-softdevice/src/flash.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 497512a..96a11a8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -401,12 +401,12 @@ checksum = "723dce4e9f25b6e6c5f35628e144794e5b459216ed7da97b7c4b66cdb3fa82ca"
[[package]]
name = "embedded-storage"
version = "0.2.0"
-source = "git+https://github.com/embassy-rs/embedded-storage.git?branch=embassy#24309dcc22dffb1dda10fccf37b4cde92c94bd69"
+source = "git+https://github.com/embassy-rs/embedded-storage.git?branch=embassy#de0c533dfdd2ce1c59083c85185c101b0c26e764"
[[package]]
name = "embedded-storage-async"
version = "0.2.0"
-source = "git+https://github.com/embassy-rs/embedded-storage.git?branch=embassy#24309dcc22dffb1dda10fccf37b4cde92c94bd69"
+source = "git+https://github.com/embassy-rs/embedded-storage.git?branch=embassy#de0c533dfdd2ce1c59083c85185c101b0c26e764"
dependencies = [
"embedded-storage 0.2.0 (git+https://github.com/embassy-rs/embedded-storage.git?branch=embassy)",
]
@@ -565,9 +565,9 @@ checksum = "822add9edb1860698b79522510da17bef885171f75aa395cff099d770c609c24"
[[package]]
name = "lock_api"
-version = "0.4.5"
+version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
+checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
dependencies = [
"scopeguard",
]
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.