AP_TemperatureSensor: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE

we have an assertion that no board with >1MB of flash is minimized
This commit is contained in:
Peter Barker 2023-04-14 13:47:52 +10:00 committed by Peter Barker
parent b19f2acb35
commit 033c708b2a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
// Enabled 2 is enabled with dummy methods for all vehicles except Sub and SITL
#ifndef AP_TEMPERATURE_SENSOR_ENABLED
#if HAL_MINIMIZE_FEATURES || BOARD_FLASH_SIZE <= 1024
#if BOARD_FLASH_SIZE <= 1024
#define AP_TEMPERATURE_SENSOR_ENABLED 0
#elif (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
#define AP_TEMPERATURE_SENSOR_ENABLED 1