mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
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
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void vtxCommonSetBandAndChannel(vtxDevice_t *vtxDevice, uint8_t band, uint8_t ch
|
||||||
// index is zero origin, zero = power off completely
|
// index is zero origin, zero = power off completely
|
||||||
void vtxCommonSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
|
void vtxCommonSetPowerByIndex(vtxDevice_t *vtxDevice, uint8_t index)
|
||||||
{
|
{
|
||||||
if (index < vtxDevice->capability.powerCount) {
|
if (index <= vtxDevice->capability.powerCount) {
|
||||||
vtxDevice->vTable->setPowerByIndex(vtxDevice, index);
|
vtxDevice->vTable->setPowerByIndex(vtxDevice, index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue