Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compiler warning - convertSpektrumVtxPowerIndex - unused parameter 'sPower' #973

3 changes: 3 additions & 0 deletions src/main/io/spektrum_vtx_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ const uint8_t vtxBsPi[SPEKTRUM_VTX_POWER_COUNT] = {
#endif // USE_VTX_BEESIGN

uint8_t convertSpektrumVtxPowerIndex(uint8_t sPower) {
#if !(defined(USE_VTX_RTC6705) || defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP))
UNUSED(sPower);
#endif
uint8_t devicePower = 0;
const vtxDevice_t *vtxDevice = vtxCommonDevice();
switch (vtxCommonGetDeviceType(vtxDevice)) {
Expand Down
Loading