mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +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();
|
vtxDevice_t *vtxDevice = vtxCommonDevice();
|
||||||
|
|
||||||
|
#if defined(USE_VTX_TABLE)
|
||||||
if (vtxDevice->capability.bandCount == 0 || vtxDevice->capability.powerCount == 0) {
|
if (vtxDevice->capability.bandCount == 0 || vtxDevice->capability.powerCount == 0) {
|
||||||
strncpy(trampCmsStatusString, "PLEASE CONFIGURE VTXTABLE", sizeof(trampCmsStatusString));
|
strncpy(trampCmsStatusString, "PLEASE CONFIGURE VTXTABLE", sizeof(trampCmsStatusString));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
trampCmsStatusString[0] = '*';
|
trampCmsStatusString[0] = '*';
|
||||||
trampCmsStatusString[1] = ' ';
|
trampCmsStatusString[1] = ' ';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue