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

PROPOSAL: clear out the user config when we suspect the user is trying to recover from applying the wrong config #921

Open
bsstephan opened this issue Mar 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bsstephan
Copy link
Contributor

Problem

Users might initialize a board with the wrong firmware, which will populate their user config with partially/totally incorrect settings for their board, and then when they apply the right firmware, nothing is fixed because all the wrong settings are already in their user config.

Solution

(via jfedor:)

Preemptively nuke the user config if it appears that the user configuration is from a different board than the currently booting firmware. (e.g. by checking boardConfig in protobuf vs. the board config definition). In the above example, this would nuke the incorrect user config when applying the right firmware, and then repopulate the user config with the right settings.

Do you plan to work on this feature yourself?

I could, but not yet; I think this could use a bit more discussion/thinking about, but the problem and general solution make sense to me.

@bsstephan bsstephan added the enhancement New feature or request label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant