From 3ef88e1b8f887b5d5beae5362ad0e7000fe72194 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Jun 2018 20:10:07 +1000 Subject: [PATCH] HAL_ChibiOS: allow flash support for bootloader --- libraries/AP_HAL_ChibiOS/hwdef/common/flash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +