Persistent setting for speaker icon

This commit is contained in:
eried 2020-06-08 01:21:11 +02:00
parent e4c9287af3
commit 2d765f8120
2 changed files with 9 additions and 0 deletions

View File

@ -218,10 +218,17 @@ void set_playdead_sequence(const uint32_t new_value) {
data->playdead_magic = playdead_magic;
}
bool config_speaker() {
return (data->ui_config & 0x10000000UL) ? false : true; // Default true
}
bool stealth_mode() {
return (data->ui_config & 0x20000000UL) ? true : false;
}
void set_config_speaker(bool new_value) {
data->ui_config = (data->ui_config & ~0x10000000UL) | (!new_value << 28);
}
void set_stealth_mode(const bool v) {
data->ui_config = (data->ui_config & ~0x20000000UL) | (v << 29);
}

View File

@ -76,10 +76,12 @@ void set_stealth_mode(const bool v);
bool config_splash();
bool config_login();
bool config_speaker();
uint32_t config_backlight_timer();
void set_config_splash(bool v);
void set_config_login(bool v);
void set_config_speaker(bool new_value);
void set_config_backlight_timer(uint32_t i);
//uint8_t ui_config_textentry();