From b1ae1591fb2a6ccfabacbc4c9abc2d9e2ab85b1e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 13 Aug 2024 17:48:25 +1000 Subject: [PATCH] AP_TemperatureSensor: add AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED --- .../AP_TemperatureSensor/AP_TemperatureSensor_config.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h index 8b7cbf59e4767..b3ee935c7d84d 100644 --- a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h +++ b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_config.h @@ -16,16 +16,20 @@ #endif #endif +#ifndef AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED +#define AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED AP_TEMPERATURE_SENSOR_ENABLED +#endif + #ifndef AP_TEMPERATURE_SENSOR_MAX31865_ENABLED - #define AP_TEMPERATURE_SENSOR_MAX31865_ENABLED AP_TEMPERATURE_SENSOR_ENABLED + #define AP_TEMPERATURE_SENSOR_MAX31865_ENABLED AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED #endif #ifndef AP_TEMPERATURE_SENSOR_ANALOG_ENABLED - #define AP_TEMPERATURE_SENSOR_ANALOG_ENABLED AP_TEMPERATURE_SENSOR_ENABLED + #define AP_TEMPERATURE_SENSOR_ANALOG_ENABLED AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED #endif #ifndef AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED - #define AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED AP_TEMPERATURE_SENSOR_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS + #define AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED AP_TEMPERATURE_SENSOR_BACKEND_DEFAULT_ENABLED && HAL_ENABLE_DRONECAN_DRIVERS #endif #if AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED && !HAL_ENABLE_DRONECAN_DRIVERS #error AP_TEMPERATURE_SENSOR_DRONECAN_ENABLED requires HAL_ENABLE_DRONECAN_DRIVERS