From 639853ede9c292ca8de621011e1343f8f44f3d5f Mon Sep 17 00:00:00 2001 From: yanshay Date: Thu, 7 Nov 2024 15:58:32 +0200 Subject: [PATCH] Add MultiwriteNorFlash trait to FlashStorage (#2478) * Add MultiwriteNorFlash trait to FlashStorage * add PR number * Revert "add PR number" This reverts commit 28bf0acd2468acfeb96a6537d6270c220fbccda1. * Added changelog with PR number --- esp-storage/CHANGELOG.md | 2 ++ esp-storage/src/nor_flash.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/esp-storage/CHANGELOG.md b/esp-storage/CHANGELOG.md index 54b50d25c1c..e23c880369b 100644 --- a/esp-storage/CHANGELOG.md +++ b/esp-storage/CHANGELOG.md @@ -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 diff --git a/esp-storage/src/nor_flash.rs b/esp-storage/src/nor_flash.rs index 16190bc8eea..6c37234f48f 100644 --- a/esp-storage/src/nor_flash.rs +++ b/esp-storage/src/nor_flash.rs @@ -2,6 +2,7 @@ use core::mem::MaybeUninit; use embedded_storage::nor_flash::{ ErrorType, + MultiwriteNorFlash, NorFlash, NorFlashError, NorFlashErrorKind, @@ -203,6 +204,8 @@ impl NorFlash for FlashStorage { } } +impl MultiwriteNorFlash for FlashStorage {} + #[cfg(test)] mod test { use core::mem::MaybeUninit;