From 102b1c6879c185b9329e77af686ad36909a03ebc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 11 Jun 2021 12:30:38 +1000 Subject: [PATCH] AP_HAL: allow for selection of Storage backend type at runtime --- libraries/AP_HAL/board/sitl.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/AP_HAL/board/sitl.h b/libraries/AP_HAL/board/sitl.h index 075a3dc32c..c30de36a6a 100644 --- a/libraries/AP_HAL/board/sitl.h +++ b/libraries/AP_HAL/board/sitl.h @@ -10,8 +10,6 @@ #define AP_FLASHSTORAGE_TYPE 3 -#if defined(STORAGE_USE_FLASH) && STORAGE_USE_FLASH==1 - #if AP_FLASHSTORAGE_TYPE == 1 // emulate F1/F3 flash #define HAL_STORAGE_SIZE 15360 @@ -33,7 +31,6 @@ #define HAL_FLASH_MIN_WRITE_SIZE 32 #define HAL_FLASH_ALLOW_UPDATE 0 #endif -#endif #ifndef HAL_STORAGE_SIZE #define HAL_STORAGE_SIZE 32768