diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.h b/libraries/AP_AHRS/AP_AHRS_NavEKF.h index a02a7ce9de..be8568baf1 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.h +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.h @@ -24,7 +24,8 @@ #include #ifndef HAL_NAVEKF2_AVAILABLE -#define HAL_NAVEKF2_AVAILABLE 1 +// only default to EK2 enabled on boards with over 1M flash +#define HAL_NAVEKF2_AVAILABLE (BOARD_FLASH_SIZE>1024) #endif #ifndef HAL_NAVEKF3_AVAILABLE