From 451de246b70e53ea84851653d8134f8898a08004 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 16 May 2021 23:01:37 +0200 Subject: [PATCH] if client wants to know how much SPIFFS --- include/pmflash.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/pmflash.h b/include/pmflash.h index 4c970a628..c2f90bfc1 100644 --- a/include/pmflash.h +++ b/include/pmflash.h @@ -35,7 +35,6 @@ # define FLASH_MEM_MAX_4K_SECTOR 0x3F000 #endif - #ifndef FLASH_MEM_ID_LEN # define FLASH_MEM_ID_LEN 8 #endif @@ -79,4 +78,9 @@ typedef struct { uint8_t signature[FLASH_MEM_SIGNATURE_LEN]; } PACKED rdv40_validation_t; +// SPIFFS current allocates 128kb of the 256kb available. +#ifndef FLASH_SPIFFS_ALLOCATED_SIZE +# define FLASH_SPIFFS_ALLOCATED_SIZE (1024 * 128) +#endif + #endif // __PMFLASH_H