Skip to content

Commit

Permalink
fix compiler warning - convertSpektrumVtxPowerIndex - unused paramete…
Browse files Browse the repository at this point in the history
…r 'sPower' (#973)

* fix compiler warnings - convertSpektrumVtxPowerIndex - unused parameter 'sPower'
* fix compiler warnings - convertSpektrumVtxPowerIndex sPower; proper gating
  • Loading branch information
nerdCopter authored Mar 1, 2024
1 parent f83f617 commit c70f55a
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit c70f55a

Please sign in to comment.