Skip to content

Commit 7bff6c5

Browse files
committed
Simplify ELRS version check
1 parent 524532e commit 7bff6c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

radio/src/telemetry/crossfire.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ const uint8_t CROSSFIRE_PERIODS[] = {
145145

146146
#define CRSF_ELRS_MIN_VER(maj, min) \
147147
(crossfireModuleStatus.isELRS \
148-
&& crossfireModuleStatus.major >= maj \
149-
&& crossfireModuleStatus.minor >= min)
148+
&& crossfireModuleStatus.major >= maj)
149+
/* && (crossfireModuleStatus.major > maj \
150+
|| (crossfireModuleStatus.major == maj \
151+
&& crossfireModuleStatus.minor >= min))) */
150152

151153
#if !defined(LUA)
152154
bool crossfireTelemetryPush(uint8_t command, uint8_t *data, uint32_t length);

0 commit comments

Comments
 (0)