Skip to content

Commit

Permalink
AP_TemperatureSensor: correct compilation when GCS not available
Browse files Browse the repository at this point in the history
This variable becomes unused
  • Loading branch information
peterbarker authored and magicrub committed Feb 16, 2024
1 parent ff00d56 commit c0deee2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0deee2

Please sign in to comment.