Skip to content

Commit 752f3c7

Browse files
bugobliteratorjschall
authored andcommitted
param: use the alignment defined in flash driver
1 parent 3be6a1c commit 752f3c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/param/flash_journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <modules/flash/flash.h>
33
#include <common/helpers.h>
44

5-
#define FLASH_JOURNAL_ALIGNMENT 2
5+
#define FLASH_JOURNAL_ALIGNMENT FLASH_WORD_SIZE
66
#define FLASH_JOURNAL_ENTRY_HEADER_SIZE sizeof(struct flash_journal_entry_s)
77

88
static uint16_t flash_journal_entry_compute_crc16(const struct flash_journal_entry_s* entry);

0 commit comments

Comments
 (0)