mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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.
|
/// To add a new preference setting just drop a new struct entry in here.
|
||||||
/// The struct field type must be serializable by bincode.
|
/// The struct field type must be serializable by bincode.
|
||||||
#[derive(prefsgenerator::GetterSetter)]
|
#[derive(prefsgenerator::GetterSetter)]
|
||||||
|
#[allow(dead_code)] // Allowing dead code here because UserPrefs is used to generate getter/setters.
|
||||||
struct UserPrefs {
|
struct UserPrefs {
|
||||||
radio_on_on_boot: bool,
|
radio_on_on_boot: bool,
|
||||||
connect_known_networks_on_boot: bool,
|
connect_known_networks_on_boot: bool,
|
||||||
autobacklight_on_boot: bool,
|
autobacklight_on_boot: bool,
|
||||||
password_after_sleep: bool,
|
autobacklight_timeout: u64,
|
||||||
close_bases_on_lock: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Manager {
|
pub struct Manager {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue