mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Fixed VTX tramp unconfigured warning when VTX tables are not enabled.
This commit is contained in:
parent
dc6aad22c5
commit
c89ee81fff
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