Merge pull request #5313 from AndersHoglund/quickfix_power_index

VTX common, Revert power index change made in PR 4879.
This commit is contained in:
Michael Keller 2018-03-02 04:09:40 +13:00 committed by GitHub
commit a20bcbadd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}