mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
userprefs: allow dead code on UserPrefs struct
Remove lock-related variables, not needed anymore, also added autobacklight timeout
This commit is contained in:
parent
59c4fbd5e9
commit
bc2cdd739b
1 changed files with 2 additions and 2 deletions
|
|
@ -35,12 +35,12 @@ impl From<DecodeError> for Error {
|
|||
/// To add a new preference setting just drop a new struct entry in here.
|
||||
/// The struct field type must be serializable by bincode.
|
||||
#[derive(prefsgenerator::GetterSetter)]
|
||||
#[allow(dead_code)] // Allowing dead code here because UserPrefs is used to generate getter/setters.
|
||||
struct UserPrefs {
|
||||
radio_on_on_boot: bool,
|
||||
connect_known_networks_on_boot: bool,
|
||||
autobacklight_on_boot: bool,
|
||||
password_after_sleep: bool,
|
||||
close_bases_on_lock: bool,
|
||||
autobacklight_timeout: u64,
|
||||
}
|
||||
|
||||
pub struct Manager {
|
||||
|
|
|
|||
Loading…
Reference in a new issue