mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-24 22:03:11 -05:00
Set fake brightness to 50% default if never configured in Settings (#1871)
This commit is contained in:
parent
9e8d279298
commit
998be5ba09
1 changed files with 4 additions and 0 deletions
|
|
@ -728,6 +728,10 @@ void set_config_backlight_timer(const backlight_config_t& new_value) {
|
||||||
|
|
||||||
void set_apply_fake_brightness(const bool v) {
|
void set_apply_fake_brightness(const bool v) {
|
||||||
data->ui_config.apply_fake_brightness = v;
|
data->ui_config.apply_fake_brightness = v;
|
||||||
|
|
||||||
|
// The fake_brightness_level field in PMEM will be 0 if it was never enabled before; pick a valid value
|
||||||
|
if (data->fake_brightness_level == 0)
|
||||||
|
data->fake_brightness_level = BRIGHTNESS_50;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t pocsag_last_address() {
|
uint32_t pocsag_last_address() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue