Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(radio): disable source 'Invert' option for 'Play Value' SF/GF #5963

Closed
wants to merge 1 commit into from

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Mar 4, 2025

Fixes #5955

@philmoz philmoz added bug 🪲 Something isn't working color Related generally to color LCD radios B&W Related generally to black and white LCD radios labels Mar 4, 2025
@philmoz philmoz added this to the 2.11 milestone Mar 4, 2025
@elecpower
Copy link
Collaborator

Matching Companion changes required?

@philmoz
Copy link
Collaborator Author

philmoz commented Mar 4, 2025

Matching Companion changes required?

Possibly, I haven't checked (on the road so limited access / time).

@3djc
Copy link
Collaborator

3djc commented Mar 4, 2025

Not sure this is the best course of action. I cannot see any logical reason why you should not be able to invert here when you can anywhere else. I saw Malte comment on it, but as a user, I makes little sense to prevent it just here.

@gagarinlg
Copy link
Member

Not so easy to fix this any other way. I think we should use that fix and look for a different solution for 3.0, in the case there is a need to do so.

@pfeerick pfeerick changed the title fix(radio): disable source 'Invert' option for 'Play Value' SF/GF. fix(radio): disable source 'Invert' option for 'Play Value' SF/GF Mar 5, 2025
@pfeerick
Copy link
Member

pfeerick commented Mar 5, 2025

Something is clearly needed, but I think it might actually be that the playValue function itself needs fixing?

It seems that #5968 fixes this, using Thr and Inv Thr as my test case so far.

@gagarinlg
Copy link
Member

playValue uses the source index, in some places, directly as an array index. When the index is negative, it creates "issues" 😉

@3djc
Copy link
Collaborator

3djc commented Mar 5, 2025

playValue uses the source index, in some places, directly as an array index. When the index is negative, it creates "issues" 😉

Yes, so does the mixer, but going into it, the mixer uses abs(source) and carries the invert aspect in a separate variable, something like that should be done there i guess

@pfeerick
Copy link
Member

pfeerick commented Mar 5, 2025

Like in #5968? 🤭

@pfeerick pfeerick added em Emergency Mode trigger firmware General radio firmware issue, not colorlcd or B&W specific and removed color Related generally to color LCD radios B&W Related generally to black and white LCD radios labels Mar 6, 2025
@pfeerick
Copy link
Member

pfeerick commented Mar 9, 2025

Closing in favor of #5968

@pfeerick pfeerick closed this Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working em Emergency Mode trigger firmware General radio firmware issue, not colorlcd or B&W specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emergency mode on playing inverted value
5 participants