mirror of https://github.com/ArduPilot/ardupilot
AP_TemperatureSensor: correct compilation when TSYS01 compiled out
This commit is contained in:
parent
274ebbaa44
commit
59a70c6713
|
@ -116,7 +116,7 @@ void AP_TemperatureSensor::init()
|
|||
}
|
||||
|
||||
// For Sub set the Default: Type to TSYS01 and I2C_ADDR of 0x77
|
||||
#if APM_BUILD_TYPE(APM_BUILD_ArduSub)
|
||||
#if APM_BUILD_TYPE(APM_BUILD_ArduSub) && AP_TEMPERATURE_SENSOR_TSYS01_ENABLED
|
||||
AP_Param::set_default_by_name("TEMP1_TYPE", (float)AP_TemperatureSensor_Params::Type::TSYS01);
|
||||
AP_Param::set_default_by_name("TEMP1_ADDR", TSYS01_ADDR_CSB0);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue