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

Fixed VTX tramp unconfigured warning when VTX tables are not enabled.

This commit is contained in:
mikeller 2019-02-27 06:06:42 +13:00
parent dc6aad22c5
commit c89ee81fff

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] = ' ';