Skip to content

Commit

Permalink
fix commpile warnings - convertSpektrumVtxPowerIndex sPower; proper g…
Browse files Browse the repository at this point in the history
…ating
  • Loading branch information
nerdCopter committed Feb 25, 2024
1 parent 1c7dbdd commit cfcab4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/io/spektrum_vtx_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +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 cfcab4e

Please sign in to comment.