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:
parent
921dfa821f
commit
de964b15ba
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user