Skip to content

Commit

Permalink
Add MultiwriteNorFlash trait to FlashStorage (#2478)
Browse files Browse the repository at this point in the history
* Add MultiwriteNorFlash trait to FlashStorage

* add PR number

* Revert "add PR number"

This reverts commit 28bf0ac.

* Added changelog with PR number
  • Loading branch information
yanshay authored Nov 7, 2024
1 parent ac819fb commit 639853e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esp-storage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added trait MultiwriteNorFlash to FlashStorage (#2478)

### Changed

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions esp-storage/src/nor_flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use core::mem::MaybeUninit;

use embedded_storage::nor_flash::{
ErrorType,
MultiwriteNorFlash,
NorFlash,
NorFlashError,
NorFlashErrorKind,
Expand Down Expand Up @@ -203,6 +204,8 @@ impl NorFlash for FlashStorage {
}
}

impl MultiwriteNorFlash for FlashStorage {}

#[cfg(test)]
mod test {
use core::mem::MaybeUninit;
Expand Down

0 comments on commit 639853e

Please sign in to comment.