Battery info switcher (#2230)

This commit is contained in:
Totoo 2024-08-28 11:32:24 +02:00 committed by GitHub
parent 1a0555f9eb
commit 0ae7768f20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 147 additions and 29 deletions

View file

@ -133,7 +133,7 @@ struct ui_config2_t {
bool hide_fake_brightness : 1;
bool hide_numeric_battery : 1;
bool hide_battery_icon : 1;
bool UNUSED_3 : 1;
bool override_batt_calc : 1;
bool UNUSED_4 : 1;
bool UNUSED_5 : 1;
bool UNUSED_6 : 1;
@ -965,6 +965,10 @@ uint8_t ui_theme_id() {
return data->ui_config2.theme_id;
}
bool ui_override_batt_calc() {
return data->ui_config2.override_batt_calc;
}
void set_ui_hide_speaker(bool v) {
data->ui_config2.hide_speaker = v;
}
@ -1006,6 +1010,9 @@ void set_ui_hide_battery_icon(bool v) {
void set_ui_theme_id(uint8_t theme_id) {
data->ui_config2.theme_id = theme_id;
}
void set_ui_override_batt_calc(bool v) {
data->ui_config2.override_batt_calc = v;
}
/* Converter */
bool config_converter() {