mirror of https://github.com/ArduPilot/ardupilot
AP_TemperatureSensor: correct compilation when GCS not available
This variable becomes unused
This commit is contained in:
parent
ff00d562fe
commit
c0deee23a3
|
@ -36,6 +36,7 @@ static const uint8_t TSYS03_CMD_READ_ADC = 0x00;
|
|||
void AP_TemperatureSensor_TSYS03::init()
|
||||
{
|
||||
constexpr char name[] = "TSYS03";
|
||||
(void)name; // sometimes this is unused (e.g. HAL_GCS_ENABLED false)
|
||||
|
||||
#if AP_TEMPERATURE_SENSOR_TSYS03_ENFORCE_KNOWN_VALID_I2C_ADDRESS
|
||||
// I2C Address: Default to using TSYS03_ADDR_CSB0 & Check I2C Address is Correct
|
||||
|
|
Loading…
Reference in New Issue