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

Update desired channel state setting to reflect a three-valued enum #174

Closed
ryan-summers opened this issue Jan 28, 2022 · 3 comments · Fixed by #183
Closed

Update desired channel state setting to reflect a three-valued enum #174

ryan-summers opened this issue Jan 28, 2022 · 3 comments · Fixed by #183
Milestone

Comments

@ryan-summers
Copy link
Member

ryan-summers commented Jan 28, 2022

Update the enabled and output_disabled parameters to reflect a three-valued enum of {Off, Powered, Enabled}.

Note

If EEPROM is modified to store more than a bool enabled, the format will change and previous user settings will be lost.

It's not immediately clear of storing Powered in the channel EEPROM settings is valid.

@ryan-summers ryan-summers mentioned this issue Jan 28, 2022
1 task
@jordens
Copy link
Member

jordens commented Jan 28, 2022

Agreed. Can we convert Powered to Off on save?

@ryan-summers
Copy link
Member Author

Yeah, I think that's not a bad approach.

@jordens
Copy link
Member

jordens commented Jan 28, 2022

Since this also affects the handling of absent channels, let's continue #170 (comment) here as well.

Maybe it's easier to add an additional field to the settings structure that explicitly marks a channel as absent.

-> #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants