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: Jonathan Nilsen <Jonathan.Nilsen@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| mpu_allow_flash_write.overlay | ||
| no_erase.overlay | ||
| prj.conf | ||
| testcase.yaml | ||
| unaligned_flush.overlay | ||