StorageManager: added bind info storage area

This commit is contained in:
Andrew Tridgell 2017-03-10 10:46:48 +11:00
parent 3afaf81ccc
commit ac324a3760
2 changed files with 8 additions and 3 deletions

View File

@ -45,6 +45,9 @@ const StorageManager::StorageArea StorageManager::layout_default[STORAGE_NUM_ARE
{ StorageFence, 5676, 256},
{ StorageMission, 5932, 2132},
{ StorageKeys, 8064, 64},
#ifdef HAL_RCINPUT_WITH_AP_RADIO
{ StorageBindInfo,8128, 8},
#endif
#endif
#if STORAGE_NUM_AREAS >= 12
{ StorageParam, 8192, 1280},
@ -71,6 +74,7 @@ const StorageManager::StorageArea StorageManager::layout_copter[STORAGE_NUM_AREA
{ StorageFence, 5676, 256},
{ StorageMission, 5932, 2132},
{ StorageKeys, 8064, 64},
{ StorageBindInfo,8128, 8},
#endif
#if STORAGE_NUM_AREAS >= 12
{ StorageParam, 8192, 1280},

View File

@ -27,9 +27,9 @@
storage. Use larger areas for other boards
*/
#if HAL_STORAGE_SIZE >= 16384
#define STORAGE_NUM_AREAS 13
#define STORAGE_NUM_AREAS 14
#elif HAL_STORAGE_SIZE >= 8192
#define STORAGE_NUM_AREAS 9
#define STORAGE_NUM_AREAS 10
#elif HAL_STORAGE_SIZE >= 4096
#define STORAGE_NUM_AREAS 4
#else
@ -47,7 +47,8 @@ public:
StorageFence = 1,
StorageRally = 2,
StorageMission = 3,
StorageKeys = 4
StorageKeys = 4,
StorageBindInfo= 5
};
// erase whole of storage