From afa8678fa795cbbbb3d0e3c8656861c0a26f7319 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Mon, 23 Oct 2023 10:55:35 +0200 Subject: [PATCH] Fix wrong parameter passed to backlight fifo (#2317) --- quickmenu/arm7/source/main.c | 4 +--- quickmenu/arm9/source/main.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/quickmenu/arm7/source/main.c b/quickmenu/arm7/source/main.c index 968966c76a..48250c564d 100644 --- a/quickmenu/arm7/source/main.c +++ b/quickmenu/arm7/source/main.c @@ -268,9 +268,7 @@ int main() { fifoSendValue32(FIFO_USER_03, status); if (REG_SNDEXTCNT == 0) { - u8 pmBacklight = readPowerManagement(PM_BACKLIGHT_LEVEL); - - if (pmBacklight & 0xF0) // DS Lite + if (hasRegulableBacklight) backlightLevel = pmBacklight & 3; // Brightness if((readPowerManagement(PM_CONTROL_REG) & 0xC) == 0) // DS Phat backlight off diff --git a/quickmenu/arm9/source/main.cpp b/quickmenu/arm9/source/main.cpp index 3a8a9f96e2..39d59b5f8c 100644 --- a/quickmenu/arm9/source/main.cpp +++ b/quickmenu/arm9/source/main.cpp @@ -2101,7 +2101,7 @@ int dsClassicMenu(void) { case 4: // Adjust backlight level if (sys().isRegularDS() || (dsiFeatures() && ms().consoleModel < 2)) { - fifoSendValue32(FIFO_USER_04, 1 | (sys().isDSPhat() << 1) | (sys().hasRegulableBacklight() << 2)); + fifoSendValue32(FIFO_USER_04, 1); mmEffectEx(&snd_backlight); } break;