1
0
Fork 0
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:
functionpointer 2019-05-15 16:22:05 +02:00
parent 1541466dac
commit e976ea13a7
5 changed files with 273 additions and 107 deletions

View file

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