diff --git a/libraries/StorageManager/StorageManager.cpp b/libraries/StorageManager/StorageManager.cpp index ba4fe44c3a..1799e16811 100644 --- a/libraries/StorageManager/StorageManager.cpp +++ b/libraries/StorageManager/StorageManager.cpp @@ -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}, diff --git a/libraries/StorageManager/StorageManager.h b/libraries/StorageManager/StorageManager.h index 88b2a0cd90..1c81877d04 100644 --- a/libraries/StorageManager/StorageManager.h +++ b/libraries/StorageManager/StorageManager.h @@ -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