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:
parent
3999562830
commit
b931284a58
10 changed files with 46 additions and 56 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue