diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c b/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c index e7eb898f29..8d9fdb1bbc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c @@ -57,7 +57,7 @@ this driver has been tested with STM32F427 and STM32F412 */ -#ifndef HAL_USE_EMPTY_STORAGE +#ifndef HAL_NO_FLASH_SUPPORT #ifndef BOARD_FLASH_SIZE #error "You must define BOARD_FLASH_SIZE in kbyte" @@ -347,4 +347,5 @@ failed: return -1; } -#endif // HAL_USE_EMPTY_STORAGE +#endif // HAL_NO_FLASH_SUPPORT +