VTX common, Revert power index change made in PR 4879r.

This commit is contained in:
Anders Hoglund 2018-02-25 20:27:08 +01:00
parent b0ff928afd
commit 46ce32e719
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);
}
}