AP_TemperatureSensor: compile all of TemperatureSensor in on boards with >2048 flash

this includes SITL but should also include CubeRed etc
This commit is contained in:
Peter Barker 2024-10-06 12:39:38 +11:00 committed by Peter Barker
parent 9a497fe716
commit a8ce43426b
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
#ifndef AP_TEMPERATURE_SENSOR_ENABLED #ifndef AP_TEMPERATURE_SENSOR_ENABLED
#if BOARD_FLASH_SIZE <= 1024 #if BOARD_FLASH_SIZE <= 1024
#define AP_TEMPERATURE_SENSOR_ENABLED 0 #define AP_TEMPERATURE_SENSOR_ENABLED 0
#elif (CONFIG_HAL_BOARD == HAL_BOARD_SITL) #elif BOARD_FLASH_SIZE > 2048
#define AP_TEMPERATURE_SENSOR_ENABLED 1 #define AP_TEMPERATURE_SENSOR_ENABLED 1
#else #else
#define AP_TEMPERATURE_SENSOR_ENABLED 2 #define AP_TEMPERATURE_SENSOR_ENABLED 2