Skip to content

Gate ELRS modules below the 3.5.4 minimum - #34

Merged
jurgelenas merged 1 commit into
unified-lua-lspfrom
elrs-version-gate
Oct 2, 2026
Merged

jurgelenas merged 1 commit into
unified-lua-lspfrom
elrs-version-gate

Conversation

@jurgelenas

Copy link
Copy Markdown
Member

Fixes #11. Supersedes #22 (rebased on the current unified-lua-lsp with the review addressed; original by @Itay-Sharoni).

Modules older than 3.5.4 predate the spec-compliant folders of ExpressLRS/ExpressLRS#3123 that the parameter loader relies on, so the tool sat on the loading screen forever.

  • The DEVICE_INFO answer discovery already gets carries the firmware version. A TX below 3.5.4 latches session.unsupported — the same flag ELRS 1.x detection now sets (detectV1/v1Detected → detectUnsupported/unsupported).
  • run() checks the flag before session:tick(), so nothing more is sent to a module the tool cannot browse.
  • The alert just states the minimum: "Requires ExpressLRS 3.5.4 or later."
  • CRSF mock devices report 4.1.0; a new old_firmware scenario reports 3.4.2.

Checked in the simulator:

Scenario GX12 (B&W) TX16S (colour)
old_firmware alert, 1 ping, no parameter reads alert, 1 ping, no parameter reads
normal parameter list loads parameter list loads

Not tested against a real 3.4.2 module.

Modules older than 3.5.4 predate the spec-compliant folders of
ExpressLRS#3123 that the parameter loader relies on; the tool sat on
the loading screen forever (#11).

DEVICE_INFO already carries the firmware version, so a TX below 3.5.4
latches session.unsupported, the same flag ELRS 1.x detection now
sets. run() checks it before tick(), so nothing more is sent to a
module the tool cannot browse. The alert just states the minimum.

The CRSF mock reports 4.1.0; the new old_firmware scenario reports
3.4.2.

Co-authored-by: Itay Sharoni <[email protected]>

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, this is going to save so many questions about it not loading.

Tested with 4.1.0 Nomad and 3.4.2 Ranger on TX16S and Ranger / Internal Boxer on Boxer (after struggling for 5 minutes trying unsuccessfully to get the dang Nomad module into the bay 😅)

@jurgelenas
jurgelenas merged commit e8dcdfb into unified-lua-lsp Oct 2, 2026
@jurgelenas
jurgelenas deleted the elrs-version-gate branch October 4, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants