-
-
Notifications
You must be signed in to change notification settings - Fork 310
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: enforce customisable switches rules when configuring #4994
Conversation
Overall very nice (i realize this is WIP)
I will wait for that change to be merged to address #4989, since both need similar functions added |
Done.
I think this is fixed now.
Moved the ones that aren't UI specific. I've also renamed FS_START_UP to FS_START_ON and FS_START_DOWN to FS_START_OFF to avoid confusion and because the previous names were backwards. E.G. if you use one of the custom switches in a SF then the ON state shows as SW DOWN, not UP which is consistent with usage for normal switches. |
Perfect ! |
For completeness, I've added an option to set the startup state of a group to 'Off'. |
Successfully tested on T20V2 |
fa84c43
to
e12addf
Compare
75b9378
to
c5f0921
Compare
c5f0921
to
3fb7a68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firmware side seems to work great, applies the rules as laid out and all makes sense.
Companion side needs a little more work as it while it seems to apply the rules just like the firmware, it does it differently... i.e. if you set SW6 to toggle, no group, set a group to always on, you can't assign SW6 to that group (whereas the firmware would let you, but force it to 2POS). And if you do this in reverse, i.e. set SW6 to be momentary, assign it to a group, and then set the group always on, it disables the group combobox, and the type field flashes but doesn't update until mouse-over and is now unselected rather than 2POS.
I would prefer to merge this as is, and continue any Companion work in #5016 since that is the next one in line for this three PR chain... sound ok? (Assuming, of course, this is isn't related to a limitation of what we can do with Companion UI/OS specific).
Remove unnecessary code. Fix switch start position display to match actual state. Fix issues with group startup switch logic.
Give me a little while to check - I would prefer to have this PR clean if possible. |
3fb7a68
to
dd8497d
Compare
Should be fixed now. |
Yes, looks like you got it... thanks! :) |
Fixes #4990
Changes to the UI for setting up custom function switches to prevent invalid setup.