Skip to content

Commit f070786

Browse files
de-nordicfabiobaltieri
authored andcommitted
storage/stream_flash: Fix description of erased_up_to
The description incorrectly stated that it points to last erased offset, while it actually points to first offset that has not yet been erased. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent 440c287 commit f070786

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/zephyr/storage/stream_flash.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ struct stream_flash_ctx {
6565
stream_flash_callback_t callback; /* Callback invoked after write op */
6666
#endif
6767
#ifdef CONFIG_STREAM_FLASH_ERASE
68-
size_t erased_up_to; /* Offset of last erased byte, relative to
69-
* offset in this context.
68+
size_t erased_up_to; /* First offset in continuous range,
69+
* relative to the stream_flash_ctx.offset,
70+
* that has not yet been erased while
71+
* preparing Stream Flash designated area
72+
* for write.
7073
*/
7174
#endif
7275
size_t write_block_size; /* Offset/size device write alignment */

0 commit comments

Comments
 (0)