1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Support of FRM302 module. (#7533)

AFHDS3 support added
This commit is contained in:
Jakub 2020-06-22 16:44:35 +02:00 committed by GitHub
parent 6d29faa48b
commit 5bf197439a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 2435 additions and 164 deletions

View file

@ -551,6 +551,7 @@ bool isModuleUsingSport(uint8_t moduleBay, uint8_t moduleType)
case MODULE_TYPE_ISRM_PXX2:
case MODULE_TYPE_R9M_LITE_PXX2:
case MODULE_TYPE_R9M_LITE_PRO_PXX2:
case MODULE_TYPE_AFHDS3:
return false;
case MODULE_TYPE_XJT_PXX1:
@ -663,6 +664,11 @@ bool isExternalModuleAvailable(int moduleType)
return false;
#endif
#if !defined(AFHDS3)
if (moduleType == MODULE_TYPE_AFHDS3)
return false;
#endif
return true;
}
@ -708,6 +714,12 @@ bool isTelemetryProtocolAvailable(int protocol)
}
#endif
#if !defined(AFHDS3)
if (protocol == PROTOCOL_TELEMETRY_AFHDS3) {
return false;
}
#endif
#if defined(PCBHORUS)
if (protocol == PROTOCOL_TELEMETRY_FRSKY_D_SECONDARY) {
return false;