Skip to content

Only show "RF Band" in Lua if hardware permits - #3501

Merged
pkendall64 merged 4 commits into
ExpressLRS:masterfrom
pkendall64:4.0/lr1121-with-single-band
Jan 22, 2026
Merged

pkendall64 merged 4 commits into
ExpressLRS:masterfrom
pkendall64:4.0/lr1121-with-single-band

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

Some hardware use the LR1121 chip, but only has one RF path populated so we should only show the Band selection option if the hardware actually supports it.

…ardware

Also fix a bug where 2.4 only would cause a reboot if no JSON value was preset for power_values
@pkendall64
pkendall64 force-pushed the 4.0/lr1121-with-single-band branch from 0b5d86b to c59d9c1 Compare January 18, 2026 03:55
Comment thread src/lib/tx-crsf/TXModuleParameters.cpp Resolved

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested with RM Nomad:

  • removing "power_values_dual" entry in hw json -> No band selection, 900Mhz packet rates
  • changing "power_values" entry to "power_values": 0 -> No band selection, 2.4G packet rates

@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.

I'm not a huge fan of cramming config fixups for things that can't be broken on any release version right into the load routine, but I'm just going to ignore how bad a precedent it sets 😅

This is a great fix for something I didn't even think about. Select 900M on a 2.4G only TX... huh ghost options!

@pkendall64

Copy link
Copy Markdown
Collaborator Author

I'm not a huge fan of cramming config fixups for things that can't be broken on any release version right into the load routine, but I'm just going to ignore how bad a precedent it sets 😅

Neither am I. I just could not figure out the best place for this, I don't know whether that was a me problem, or this is just the best place.

@pkendall64
pkendall64 merged commit bcda510 into ExpressLRS:master Jan 22, 2026
@pkendall64
pkendall64 deleted the 4.0/lr1121-with-single-band branch January 22, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants