Skip to content

Commit

Permalink
Fix wrong parameter passed to backlight fifo (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 authored Oct 23, 2023
1 parent b76ddaa commit afa8678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions quickmenu/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quickmenu/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afa8678

Please sign in to comment.