mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
SmartAudio conversion to VTX table and V2.1 implementation
This commit is contained in:
parent
1541466dac
commit
e976ea13a7
5 changed files with 273 additions and 107 deletions
|
@ -207,8 +207,8 @@ const char *vtxCommonLookupPowerName(const vtxDevice_t *vtxDevice, int index)
|
|||
|
||||
uint16_t vtxCommonLookupPowerValue(const vtxDevice_t *vtxDevice, int index)
|
||||
{
|
||||
if (vtxDevice) {
|
||||
return vtxDevice->powerValues[index];
|
||||
if (vtxDevice && index > 0) {
|
||||
return vtxDevice->powerValues[index - 1];
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue