diff --git a/libraries/StorageManager/StorageManager.cpp b/libraries/StorageManager/StorageManager.cpp index 2d8e90eedc..fc5b6136f5 100644 --- a/libraries/StorageManager/StorageManager.cpp +++ b/libraries/StorageManager/StorageManager.cpp @@ -65,7 +65,8 @@ const StorageManager::StorageArea StorageManager::layout_default[STORAGE_NUM_ARE { StorageParam, 8192, 1280}, { StorageRally, 9472, 300}, { StorageFence, 9772, 256}, - { StorageMission, 10028, 6228}, // leave 128 byte gap for expansion + { StorageMission, 10028, 5204}, // leave 128 byte gap for expansion + { StorageCANDNA, 15232, 1024}, #endif }; @@ -95,7 +96,8 @@ const StorageManager::StorageArea StorageManager::layout_copter[STORAGE_NUM_AREA { StorageParam, 8192, 1280}, { StorageRally, 9472, 300}, { StorageFence, 9772, 256}, - { StorageMission, 10028, 6228}, // leave 128 byte gap for expansion + { StorageMission, 10028, 5204}, // leave 128 byte gap for expansion + { StorageCANDNA, 15232, 1024}, #endif }; #endif // STORAGE_NUM_AREAS == 1 diff --git a/libraries/StorageManager/StorageManager.h b/libraries/StorageManager/StorageManager.h index b723bbae63..11876bbc91 100644 --- a/libraries/StorageManager/StorageManager.h +++ b/libraries/StorageManager/StorageManager.h @@ -27,7 +27,7 @@ storage. Use larger areas for other boards */ #if HAL_STORAGE_SIZE >= 16384 -#define STORAGE_NUM_AREAS 14 +#define STORAGE_NUM_AREAS 15 #elif HAL_STORAGE_SIZE >= 15360 #define STORAGE_NUM_AREAS 11 #elif HAL_STORAGE_SIZE >= 8192 @@ -52,7 +52,8 @@ public: StorageRally = 2, StorageMission = 3, StorageKeys = 4, - StorageBindInfo= 5 + StorageBindInfo= 5, + StorageCANDNA = 6 }; // erase whole of storage