Commit e1891b3e authored by Jonathan Nilsen's avatar Jonathan Nilsen Committed by Carles Cufí
Browse files

storage/stream: Move fill value handling to flash_sync



Move the code responsible for aligning the flash write by writing fill
values - from stream_flash_buffered_write to flash_sync. This avoids
having to correct buf_bytes/buf_written after the write and thus
simplifies error handling.

This commit also fixes an issue where the write length passed to the
callback in flash_sync includes the fill length.

Signed-off-by: default avatarJonathan Nilsen <Jonathan.Nilsen@nordicsemi.no>
parent f0006952
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment