Skip to content

Commit

Permalink
AP_TemperatureSensor: correct compilation when TSYS01 compiled out
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Dec 17, 2022
1 parent 274ebba commit 59a70c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_TemperatureSensor/AP_TemperatureSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59a70c6

Please sign in to comment.