From 00527237f973c37c7155c1d8072e1b2c53d8a5cc Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Tue, 4 Aug 2015 16:23:38 +1000 Subject: [PATCH] Remove now-unnecessary alignment constraints in SPIFFS. With platform_s_flash_read() now properly handling unaligned destination buffers, there is no need to shim SPIFFS any more. --- app/spiffs/spiffs_nucleus.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/spiffs/spiffs_nucleus.h b/app/spiffs/spiffs_nucleus.h index 65806d38..c5c3b9e4 100644 --- a/app/spiffs/spiffs_nucleus.h +++ b/app/spiffs/spiffs_nucleus.h @@ -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, aligned(4) )) { +typedef struct __attribute(( packed )) { // object id spiffs_obj_id obj_id; // object span index @@ -415,7 +415,7 @@ typedef struct __attribute(( packed, aligned(4) )) { } spiffs_page_header; // object index header page header -typedef struct __attribute(( packed, aligned(4) )) +typedef struct __attribute(( packed )) { // common page header spiffs_page_header p_hdr; @@ -428,7 +428,7 @@ typedef struct __attribute(( packed, aligned(4) )) } spiffs_page_object_ix_header; // object index page header -typedef struct __attribute(( packed, aligned(4) )) { +typedef struct __attribute(( packed )) { spiffs_page_header p_hdr; } spiffs_page_object_ix;