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

Current config preserved after OTA reflash #64

Closed
penfold42 opened this issue Aug 6, 2017 · 2 comments
Closed

Current config preserved after OTA reflash #64

penfold42 opened this issue Aug 6, 2017 · 2 comments

Comments

@penfold42
Copy link
Contributor

It seems that an espixelstick with a current valid config will retain this after an over the air reflash.

Is this a feature ?

Could we make it optional ?

@forkineye
Copy link
Owner

It's a feature. After everything is flashed, config.json is written back out with the current configuration. If something is missing from the config file after reboot due to new features, its needs to be initialized from the sketch and validateConfig() is a good place to do it. What's the use case for overwriting the config? It would still need to retain the WiFi section so connectivity isn't lost.

@penfold42
Copy link
Contributor Author

I'm ok with this behaviour - it just caught me out when I made some changes to config.json while reflashing OTA to a device with no USB serial.

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

No branches or pull requests

2 participants