Merge pull request #5313 from AndersHoglund/quickfix_power_index
VTX common, Revert power index change made in PR 4879.
This commit is contained in:
commit
a20bcbadd4
|
@ -72,7 +72,7 @@ void vtxCommonSetBandAndChannel(vtxDevice_t *vtxDevice, uint8_t band, uint8_t ch
|
|||
// index is zero origin, zero = power off completely
|
||||
void vtxCommonSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
|
||||
{
|
||||
if (index < vtxDevice->capability.powerCount) {
|
||||
if (index <= vtxDevice->capability.powerCount) {
|
||||
vtxDevice->vTable->setPowerByIndex(vtxDevice, index);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue