Skip to content

Commit

Permalink
Make capacity async and fallible
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Jul 19, 2024
1 parent 4618091 commit 1a86e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedded-storage-async/src/nor_flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait ReadNorFlash: ErrorType {
async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;

/// The capacity of the peripheral in bytes.
fn capacity(&self) -> usize;
async fn capacity(&self) -> Result<usize, Self::Error>;
}

/// NOR flash trait.
Expand Down

0 comments on commit 1a86e28

Please sign in to comment.