Skip to content
Commit d47fada3 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Maureen Helm
Browse files

subsys: fs/nvs: fix writes when write_block_size != 1



The current code computes the block-aligned len by ANDing the len with
~write_block_size instead of ~(write_block_size - 1).

In addition the compute value can be 0 (for lengths that are less than
the block size), so the first flash write might have to be skipped.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 12a77e50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment