diff --git a/pkg/spiffs/include/spiffs_config.h b/pkg/spiffs/include/spiffs_config.h index 534d0fb48786193c22e4f0e28c514adad3144fc4..9909e85d436d23c57698fcb280b8e1cc0357b9dc 100644 --- a/pkg/spiffs/include/spiffs_config.h +++ b/pkg/spiffs/include/spiffs_config.h @@ -208,7 +208,7 @@ void spiffs_unlock(struct spiffs_t *fs); // Enable this if your target needs aligned data for index tables #ifndef SPIFFS_ALIGNED_OBJECT_INDEX_TABLES -#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 0 +#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 1 #endif // Enable this if you want the HAL callbacks to be called with the spiffs struct diff --git a/tests/unittests/tests-spiffs/tests-spiffs.c b/tests/unittests/tests-spiffs/tests-spiffs.c index 02e1b9efede992d9b7f04d04fe7bfeb723fc9d9c..42036533998e6eada4e9734e10d39c7f07264ad6 100644 --- a/tests/unittests/tests-spiffs/tests-spiffs.c +++ b/tests/unittests/tests-spiffs/tests-spiffs.c @@ -29,10 +29,10 @@ #else /* Test mock object implementing a simple RAM-based mtd */ #ifndef SECTOR_COUNT -#define SECTOR_COUNT 8 +#define SECTOR_COUNT 4 #endif #ifndef PAGE_PER_SECTOR -#define PAGE_PER_SECTOR 4 +#define PAGE_PER_SECTOR 8 #endif #ifndef PAGE_SIZE #define PAGE_SIZE 128