1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-20 14:55:09 +03:00

More consistency in CMake options to enable / disable modules

This commit is contained in:
Bertrand Songis 2019-08-29 10:22:19 +02:00
parent 84df065e70
commit 6d893c9ea4
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
23 changed files with 78 additions and 53 deletions

View file

@ -515,7 +515,7 @@ bool isSourceAvailableInResetSpecialFunction(int index)
bool isR9MModeAvailable(int mode)
{
#if defined(R9M_PROTO_FLEX)
#if defined(MODULE_PROTOCOL_FLEX)
return true;
#else
return mode <= MODULE_SUBTYPE_R9M_EU;
@ -660,7 +660,7 @@ bool isRfProtocolAvailable(int protocol)
return false;
}
#endif
#if defined(MODULE_D16_EU_ONLY_SUPPORT)
#if !defined(MODULE_PROTOCOL_D8)
if (protocol == MODULE_SUBTYPE_PXX1_ACCST_D8) {
return false;
}