diff --git a/ArduCopter/APM_Config.h b/ArduCopter/APM_Config.h index 99c1c9d621..716b98cbf1 100644 --- a/ArduCopter/APM_Config.h +++ b/ArduCopter/APM_Config.h @@ -19,7 +19,9 @@ */ // uncomment the lines below to save on flash space if compiling for the APM using Arduino IDE. Top items save the most flash space -#define CLI_ENABLED DISABLED // disable the CLI (command-line-interface) to save 21K of flash space +#if (CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_APM1) + # define CLI_ENABLED DISABLED // disable the CLI (command-line-interface) to save 21K of flash space +#endif //#define LOGGING_ENABLED DISABLED // disable dataflash logging to save 11K of flash space //#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX // hard code GPS to Ublox to save 8k of flash //#define GPS_PROTOCOL GPS_PROTOCOL_MTK19 // hard cdoe GPS to Mediatek to save 10k of flash