Repository navigation
Remove isElrs distinction from CRSF parameter read/write - #3680
Merged
Merged
Conversation
Did you even test an RX, Bry? Of course I did(n't)
pkendall64
reviewed
Jun 27, 2026
| fields_count = device.fldcnt | ||
| deviceIsELRS_TX = device.isElrs and devId == 0xEE or nil -- ELRS and ID is TX module | ||
| handsetId = deviceIsELRS_TX and 0xEF or 0xEA -- Address ELRS_LUA vs RADIO_TRANSMITTER | ||
| -- handsetId = deviceIsELRS_TX and 0xEF or 0xEA -- Address ELRS_LUA vs RADIO_TRANSMITTER for pre 4.1.0 TX firmwares |
Collaborator
There was a problem hiding this comment.
Why commented out rather than removed?
Member
Author
There was a problem hiding this comment.
I thought maybe for posterity but you're right, this repo preserves how it used to be so no need to keep the old code commented out.
pkendall64
approved these changes
Jun 27, 2026
mha1
approved these changes
Jul 1, 2026
mha1
left a comment
Contributor
There was a problem hiding this comment.
V4.01: as expected r18 shows static bad/good, r17 doesn't. Both versions work with no obvious issues.
PR: as expected r17 and r18 don't show bad/good. Both versionswork with no obvious issues.
ajjjjjjjj
added a commit
to OpenI6X/opentx
that referenced
this pull request
Jul 4, 2026
ajjjjjjjj
added a commit
to OpenI6X/opentx
that referenced
this pull request
Aug 8, 2026
Refactored elrs config + smaller compiled size Always use standard radio address (ExpressLRS/ExpressLRS/pull/3680) Simplified fieldIntegerDisplay, Removed unitLoad because it was a copy of paramInfoLoad
This was referenced Aug 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the special
CRSF_ADDRESS_ELRS_LUAfrom our code, and the always-hidden-for-ELRS "Bad/Good" parameter listed in the lua.Details
The lua uses the made-up address
CRSF_ADDRESS_ELRS_LUAto indicate that our own lua is sending the request forPARAMETER_INFO, and thus lets the TX module that very complex special handling should be done.What special handling? To use a non-standard CRSF flag to override the HIDDEN flag of the "Bad/Good" parameter to be always hidden in our Lua, and therefore shown in the standard TBS lua.
Removing this field means we can remove the non-standard address, all the code associated with tracking this non-standard flag, the code for updating the string nobody sees, and the lua list will load 1/30th faster!
Regressions
What to Test
There is no visible difference when using the r17 lua or this one (r18) when a module is flashed with this PR. The only difference is in the TBS lua, which will show a bad/good normally but will not on this PR. Our lua should be the only thing that ever used this value, so any other lua script that tunnels through ExpressLRS should still work fine (I tested bf.lua and rotorflight). I do not think there is any need to be to thorough with testing other lua utilities.
So for testing I guess just test that our existing lua (<r18) still loads and works against this PR, EdgeTX still displays the module name in its "About" modules page. You can also verify that when running the r18 lua against any order code (4.0 or 3.x or 2.x) that you now see a bad/good parameter, but I don't think that's worth testing since it is a known result.