mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #6907 from jflyper/bfdev-make-reportExtendedEscSensors-conditional
Protect reportExtendedEscSensors with USE_ESC_SENSOR to avoid unused warning
This commit is contained in:
commit
c3ffd0bdd0
1 changed files with 2 additions and 0 deletions
|
@ -317,9 +317,11 @@ static void smartPortSendPackage(uint16_t id, uint32_t val)
|
||||||
smartPortWriteFrame(&payload);
|
smartPortWriteFrame(&payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_ESC_SENSOR
|
||||||
static bool reportExtendedEscSensors(void) {
|
static bool reportExtendedEscSensors(void) {
|
||||||
return featureIsEnabled(FEATURE_ESC_SENSOR) && telemetryConfig()->smartport_use_extra_sensors;
|
return featureIsEnabled(FEATURE_ESC_SENSOR) && telemetryConfig()->smartport_use_extra_sensors;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ADD_SENSOR(dataId) frSkyDataIdTableInfo.table[frSkyDataIdTableInfo.index++] = dataId
|
#define ADD_SENSOR(dataId) frSkyDataIdTableInfo.table[frSkyDataIdTableInfo.index++] = dataId
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue