1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Fix define dependencies for VTX code

Fixes #4147
This commit is contained in:
Dan Nixon 2017-09-14 17:57:46 +01:00
parent f4af2da6e8
commit 811a78c5e1
3 changed files with 11 additions and 2 deletions

View file

@ -21,7 +21,7 @@
#include "platform.h"
#ifdef CMS
#if defined(CMS) && defined(VTX_SMARTAUDIO)
#include "common/printf.h"
#include "common/utils.h"

View file

@ -21,7 +21,8 @@
#include "platform.h"
#ifdef CMS
#if defined(CMS) && defined(VTX_TRAMP)
#include "common/printf.h"
#include "common/utils.h"

View file

@ -56,3 +56,11 @@
#undef USE_MSP_OVER_TELEMETRY
#endif
#endif
/* If either VTX_CONTROL or VTX_COMMON is undefined then remove common code and device drivers */
#if !defined(VTX_COMMON) || !defined(VTX_CONTROL)
#undef VTX_COMMON
#undef VTX_CONTROL
#undef VTX_TRAMP
#undef VTX_SMARTAUDIO
#endif