1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Display available dBm power levels from SA2.1 VTX along with corresponding power expressed in mW

This commit is contained in:
SteveCEvans 2019-10-28 00:35:14 +00:00
parent 887a913c6e
commit 938a39ac8f
8 changed files with 91 additions and 7 deletions

View file

@ -141,6 +141,11 @@ bool vtxCommonGetStatus(const vtxDevice_t *vtxDevice, unsigned *status)
return vtxDevice->vTable->getStatus(vtxDevice, status);
}
uint8_t vtxCommonGetVTXPowerLevels(const vtxDevice_t *vtxDevice, uint16_t *levels, uint16_t *powers)
{
return vtxDevice->vTable->getPowerLevels(vtxDevice, levels, powers);
}
const char *vtxCommonLookupBandName(const vtxDevice_t *vtxDevice, int band)
{
if (vtxDevice && band > 0 && band <= vtxTableBandCount) {