1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Protect reportExtendedEscSensors by USE_ESC_SENSOR to avoid unused message

This commit is contained in:
jflyper 2018-10-08 23:46:12 +09:00
parent 8283aba668
commit b14e38e51a

View file

@ -317,9 +317,11 @@ static void smartPortSendPackage(uint16_t id, uint32_t val)
smartPortWriteFrame(&payload);
}
#ifdef USE_ESC_SENSOR
static bool reportExtendedEscSensors(void) {
return featureIsEnabled(FEATURE_ESC_SENSOR) && telemetryConfig()->smartport_use_extra_sensors;
}
#endif
#define ADD_SENSOR(dataId) frSkyDataIdTableInfo.table[frSkyDataIdTableInfo.index++] = dataId