Skip to content
Commit 5a1750b0 authored by Dominik Ermel's avatar Dominik Ermel Committed by Ioannis Glaropoulos
Browse files

storage/stream/flash: flash_sync: Check if there is anything to write



The commit moves block that checks if flash_stream_ctx.buf_bytes
is non-zero out of CONFIG_STREAM_FLASH_ERASE specific code,  as that is
universal check and is valid also for not CONFIG_STREAM_FLASH_ERASE
code.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent cfb05690
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment