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.
This commit is contained in:
Gustavo Jose de Sousa 2015-03-19 09:52:55 -03:00 committed by Andrew Tridgell
parent 4b0495bb15
commit 87776d8a4b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
#include <AP_HAL.h>
#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<<LINUX_STORAGE_LINE_SHIFT)