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

Add safe mode execution wrapper to smibhid #252

Open
sjefferson99 opened this issue Oct 15, 2024 · 1 comment
Open

Add safe mode execution wrapper to smibhid #252

sjefferson99 opened this issue Oct 15, 2024 · 1 comment
Assignees
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code

Comments

@sjefferson99
Copy link
Member

Wrap main in try except and on exception, log error to file and if safe mode enabled, replace main with backup that loads a minimal known working Web server to load new firmware or config.

@sjefferson99
Copy link
Member Author

Updater will populate last changes in a backup folder which can be restored on first attempt.
If this fails, have config entry that enables safe mode to pull latest stable version from github to get you back to a working web UI and smibhid to try again.
Update web page should allow you to browse the backup files and manage them, can then maintain space, but also provide a custom backup without bouncing back to latest stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code
Projects
None yet
Development

No branches or pull requests

1 participant