AP_HAL: fixed default HAL_STORAGE_SIZE for flash storage

This commit is contained in:
Andrew Tridgell 2020-04-11 09:34:06 +10:00
parent c0039c85e0
commit e1792f89db
1 changed files with 4 additions and 0 deletions

View File

@ -5,7 +5,11 @@
#define HAL_MEM_CLASS HAL_MEM_CLASS_1000
#define HAL_OS_POSIX_IO 1
#define HAL_OS_SOCKETS 1
#if defined(STORAGE_USE_FLASH) && STORAGE_USE_FLASH==1
#define HAL_STORAGE_SIZE 15360
#else
#define HAL_STORAGE_SIZE 16384
#endif
#define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE
#define HAL_BOARD_LOG_DIRECTORY "logs"
#define HAL_BOARD_TERRAIN_DIRECTORY "terrain"