Skip to content

Commit 3a7f692

Browse files
committed
nvs: support sector_size > 64KB
Allows NVS to work with flash device configured to use only 64KB block erase. Signed-off-by: Mike J. Chen <mjchen@google.com>
1 parent e82cabb commit 3a7f692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/fs/nvs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct nvs_fs {
4848
/** Data write address */
4949
uint32_t data_wra;
5050
/** File system is split into sectors, each sector must be multiple of erase-block-size */
51-
uint16_t sector_size;
51+
uint32_t sector_size;
5252
/** Number of sectors in the file system */
5353
uint16_t sector_count;
5454
/** Flag indicating if the file system is initialized */

0 commit comments

Comments
 (0)