fix(radio): don't check ELRS version if crossfire disabled (#5961)

This commit is contained in:
Peter Feerick
2025-03-06 12:08:09 +10:00
committed by GitHub
parent efcc29f2e2
commit be20e2ef2a
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -156,11 +156,15 @@ const uint8_t CROSSFIRE_FRAME_PERIODS[] = {
% DIM(CROSSFIRE_BAUDRATES)
#endif
#if defined(CROSSFIRE)
#define CRSF_ELRS_MIN_VER(moduleIdx, maj, min) \
(crossfireModuleStatus[moduleIdx].isELRS \
&& (crossfireModuleStatus[moduleIdx].major > maj \
|| (crossfireModuleStatus[moduleIdx].major == maj \
&& crossfireModuleStatus[moduleIdx].minor >= min)))
#else
#define CRSF_ELRS_MIN_VER(moduleIdx, maj, min) false
#endif
#if defined(HARDWARE_INTERNAL_MODULE)
#define INT_CROSSFIRE_BR_IDX CROSSFIRE_STORE_TO_INDEX(g_eeGeneral.internalModuleBaudrate)