1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Fix power control for RTC6705 VTXs

This commit is contained in:
Moto Moto 2017-12-30 18:29:50 -06:00
parent 3999562830
commit b931284a58
10 changed files with 46 additions and 56 deletions

View file

@ -74,7 +74,7 @@ void vtxCommonSetBandAndChannel(uint8_t band, uint8_t channel)
// index is zero origin, zero = power off completely
void vtxCommonSetPowerByIndex(uint8_t index)
{
if (vtxDevice && (index <= vtxDevice->capability.powerCount)) {
if (vtxDevice && (index < vtxDevice->capability.powerCount)) {
if (vtxDevice->vTable->setPowerByIndex) {
vtxDevice->vTable->setPowerByIndex(index);
}