1
0
mirror of https://github.com/DiUS/spiffsimg.git synced 2025-05-08 20:40:34 +08:00

Ensure data after page header is 4-byte aligned.

For compatibility with the NodeMCU setup.
This commit is contained in:
Johny Mattsson 2015-07-31 16:30:29 +10:00
parent 921dfa821f
commit de964b15ba

View File

@ -405,7 +405,7 @@ typedef struct {
// page header, part of each page except object lookup pages
// NB: this is always aligned when the data page is an object index,
// as in this case struct spiffs_page_object_ix is used
typedef struct __attribute(( packed )) {
typedef struct __attribute(( packed, aligned(4) )) {
// object id
spiffs_obj_id obj_id;
// object span index