From 87776d8a4be7fccfb715d750f3fbee8b6c0d3151 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Thu, 19 Mar 2015 09:52:55 -0300 Subject: [PATCH] Storage: define LINUX_STORAGE_SIZE correctly The value for LINUX_STORAGE_SIZE was defined inconsistently against the one defined for Linux boards in HAL_STORAGE_SIZE. That led to some values not being written to the storage when running the test binary built at libraries/StorageManager/examples/StorageTest. --- libraries/AP_HAL_Linux/Storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/Storage.h b/libraries/AP_HAL_Linux/Storage.h index f89c34815a..34e875751d 100644 --- a/libraries/AP_HAL_Linux/Storage.h +++ b/libraries/AP_HAL_Linux/Storage.h @@ -10,7 +10,7 @@ #include #include "AP_HAL_Linux_Namespace.h" -#define LINUX_STORAGE_SIZE 4096 +#define LINUX_STORAGE_SIZE HAL_STORAGE_SIZE #define LINUX_STORAGE_MAX_WRITE 512 #define LINUX_STORAGE_LINE_SHIFT 9 #define LINUX_STORAGE_LINE_SIZE (1<