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:
commit
1507cc880c
1 changed files with 2 additions and 0 deletions
|
@ -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] = ' ';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue