1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #7667 from mikeller/fix_vtx_tramp_warning

Fixed VTX tramp unconfigured warning when VTX tables are not enabled.
This commit is contained in:
Michael Keller 2019-03-01 02:07:47 +13:00 committed by GitHub
commit 1507cc880c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,10 +49,12 @@ void trampCmsUpdateStatusString(void)
{
vtxDevice_t *vtxDevice = vtxCommonDevice();
#if defined(USE_VTX_TABLE)
if (vtxDevice->capability.bandCount == 0 || vtxDevice->capability.powerCount == 0) {
strncpy(trampCmsStatusString, "PLEASE CONFIGURE VTXTABLE", sizeof(trampCmsStatusString));
return;
}
#endif
trampCmsStatusString[0] = '*';
trampCmsStatusString[1] = ' ';