only inv or fakebrightness (#2240)

This commit is contained in:
Totoo 2024-09-08 09:35:09 +02:00 committed by GitHub
parent 31c844b48e
commit 1f78646054
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 19 deletions

View file

@ -1129,7 +1129,7 @@ void set_fake_brightness_level(uint8_t v) {
// Cycle through 4 brightness options: disabled -> enabled/50% -> enabled/25% -> enabled/12.5% -> disabled
void toggle_fake_brightness_level() {
bool fbe = apply_fake_brightness();
if (config_lcd_inverted_mode()) return; // for now only inverted mode OR fake brightness
if ((!fbe) || (data->fake_brightness_level >= BRIGHTNESS_12p5)) {
set_apply_fake_brightness(!fbe);
data->fake_brightness_level = BRIGHTNESS_50;