Skip to content

Simplify the flasher to only use the PIO env for target selection - #3585

Merged
pkendall64 merged 2 commits into
ExpressLRS:masterfrom
pkendall64:4.1/flasher-adjustments
Apr 14, 2026
Merged

pkendall64 merged 2 commits into
ExpressLRS:masterfrom
pkendall64:4.1/flasher-adjustments

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

This is part 1 of 3 in preparation for supporting new radios and/or MCUs.

It simplifies the flasher so it lists all targets that have a matching firmware name, rather than parsing the name into device type (RX/TX), band(implying radio), and MCU.
This means that the band in the targets file (900/2400/dual) is independent of the radio in use. i.e. a dual band capable radio can be used for a single band if the hardware only has one RF path.

@pkendall64 pkendall64 added house keeping 🧹 Cleanup of code and house keeping V4.1 🍑 labels Mar 25, 2026
@CapnBry

CapnBry commented Apr 14, 2026

Copy link
Copy Markdown
Member

This is a nice simplification. There's no need to have the delineation between single and dual or which band it is complicating things. Seems to present the right configuration list for the basics and a handful of single band cases (e.g. BAYCKRC RR2)

Questions:

  • The distinction is going to remain in the targets.json file in the end, or will that be removed as well and rely on a key in the config's json?
  • Would you mind bringing this up to date with master? I just want to verify that the merge output is correct before approving.

@pkendall64

Copy link
Copy Markdown
Collaborator Author
  • The distinction is going to remain in the targets.json file in the end, or will that be removed as well and rely on a key in the config's json?

If you mean 900/2400/dual, yes I think we might still want to keep that as we do already have some receivers that are single band only using a dual band capable transceiver. If that's not what you mean then you'll have to clarify what you mean 😄

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

Merge looks good, I was just concerned about the interactiveProductSelect() but it is fine.

You're right I was also a bit confusing with my question since it is all json files, but you answered it as I meant it and I agree.

@pkendall64
pkendall64 merged commit ce24018 into ExpressLRS:master Apr 14, 2026
26 checks passed
@pkendall64
pkendall64 deleted the 4.1/flasher-adjustments branch April 14, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house keeping 🧹 Cleanup of code and house keeping V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants