Skip to content

Commit

Permalink
Fix a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Feb 21, 2021
1 parent 3138968 commit ee43fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arm11/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ void __attribute__((noreturn)) MainLoop(void)
// sets the LCDs brightness (if FIXED_BRIGHTNESS is disabled)
case PXICMD_SET_BRIGHTNESS:
{
s32 newbrightness = (s32)args[0];
pxiReply = GFX_getBrightness();
#ifndef FIXED_BRIGHTNESS
s32 newbrightness = (s32)args[0];
if ((newbrightness > 0) && (newbrightness < 0x100)) {
GFX_setBrightness(newbrightness, newbrightness);
auto_brightness = false;
Expand Down

0 comments on commit ee43fe3

Please sign in to comment.