mirror of https://github.com/ArduPilot/ardupilot
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:
parent
4b0495bb15
commit
87776d8a4b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue