diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c b/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c index 89d2b2c755..9e8fc2ce7c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/flash.c @@ -75,7 +75,7 @@ // optionally disable interrupts during flash writes #ifndef STM32_FLASH_DISABLE_ISR -#define STM32_FLASH_DISABLE_ISR 0 +#define STM32_FLASH_DISABLE_ISR 1 #endif // the 2nd bank of flash needs to be handled differently