diff --git a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h index 2fdd2f325f..7463d706c1 100644 --- a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h +++ b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h @@ -9,7 +9,7 @@ #ifndef AP_TEMPERATURE_SENSOR_ENABLED #if BOARD_FLASH_SIZE <= 1024 #define AP_TEMPERATURE_SENSOR_ENABLED 0 -#elif (CONFIG_HAL_BOARD == HAL_BOARD_SITL) +#elif BOARD_FLASH_SIZE > 2048 #define AP_TEMPERATURE_SENSOR_ENABLED 1 #else #define AP_TEMPERATURE_SENSOR_ENABLED 2