Skip to content

Load proper default product with mixed case - #3665

Merged
pkendall64 merged 1 commit into
ExpressLRS:masterfrom
CapnBry:noload-default-product
Jun 3, 2026
Merged

pkendall64 merged 1 commit into
ExpressLRS:masterfrom
CapnBry:noload-default-product

Conversation

@CapnBry

@CapnBry CapnBry commented Jun 1, 2026

Copy link
Copy Markdown
Member

The "default product" for the interactive hardware appending step of the build was failing to find the correct default. This is due to it now saving the target in mixed case, and trying to load it in upper case. This was missed by me during my review of #3585.

Symptom: Builds always show a default of 0 when prompting for which hardware config to append at the end of the build.

I could also fix this by reverting the changes to clearDefaultProductForTarget() and setDefaultProductForTarget() but I figure this is fewer changes and keeps everything consistent with how the other PR no longer uses uppercase either.

@pkendall64 pkendall64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ooops, my bad

@CapnBry

CapnBry commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

Ooops, my bad

I reviewed it and even mentioned that it worked correctly! However, it was because my json file had both the uppercase and mixed case in the file, so it seemed to work. But when I built a new target today it just would not save the default. So, more my bad because I specifically looked at this and failed haha

@pkendall64
pkendall64 merged commit cfa88c0 into ExpressLRS:master Jun 3, 2026
26 checks passed
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