-
Notifications
You must be signed in to change notification settings - Fork 26
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
Enable SE050 by default #471
Conversation
31854c4
to
ea1e181
Compare
Insignifcant changes
|
ea1e181
to
d4ab5d4
Compare
components/apps/src/lib.rs
Outdated
impl Default for OpcardConfig { | ||
fn default() -> Self { | ||
Self { | ||
#[cfg(feature = "se050")] | ||
use_se050_backend: true, | ||
} | ||
} | ||
} |
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.
AFAIS this silently changes the configuration when upgrading from the test release with se050 disabled. Do we really want that?
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.
It also automatically enables the se050 backend when upgrading from stable with the default config. My idea last week was to use two separate config states:
- a default state, i. e.
Default::default
, that is used when an option is not set explicitly - an init state that is set during provisioning or after a factory reset
Ideally, the init state would be the default state for most options, but here we need to make a distinction.
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.
There's also the problem that after a factory reset the config is not saved again. I need to expose a way to do that with the admin-app.
So many edge cases.
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.
Should be fixed now.
1b49d07
to
02c8fbb
Compare
02c8fbb
to
da2ac3a
Compare
Depends on: