From 9edda8d013aa8c4f42e34a085cfad196627a88fd Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Wed, 10 May 2017 17:44:59 +0200 Subject: [PATCH] unittests/tests-spiffs: fix dummy memory layout Use 8 pages per sector to comply with spiffs requirements: - page_size must be block_size / (2^y) where y > 2 --- tests/unittests/tests-spiffs/tests-spiffs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unittests/tests-spiffs/tests-spiffs.c b/tests/unittests/tests-spiffs/tests-spiffs.c index 02e1b9efe..420365339 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