Skip to content

Commit

Permalink
flash_cache:Flush complete cache line
Browse files Browse the repository at this point in the history
  • Loading branch information
davids5 authored and dagar committed May 27, 2022
1 parent fd81951 commit 645f4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/src/bootloader/common/lib/flash_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ inline int fc_is_dirty(flash_cache_line_t *fl)

int fc_flush(flash_cache_line_t *fl)
{
size_t bytes = (fl->index + 1) * sizeof(fl->words[0]);
const size_t bytes = sizeof(fl->words);
size_t rv = arch_flash_write(fl->start_address, fl->words, bytes);

if (rv == bytes) {
Expand Down

0 comments on commit 645f4c3

Please sign in to comment.