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

@ -78,7 +78,7 @@ void IO::reference_oscillator(const bool enable) {
}
bool IO::get_dark_cover() {
return portapack::persistent_memory::apply_fake_brightness();
return portapack::persistent_memory::apply_fake_brightness() & (!portapack::persistent_memory::config_lcd_inverted_mode());
}
bool IO::get_is_inverted() {