Fix a compiler warning

This commit is contained in:
d0k3 2021-02-21 14:35:13 +01:00
parent 31389687ab
commit ee43fe328f

View File

@ -187,9 +187,9 @@ void __attribute__((noreturn)) MainLoop(void)
// sets the LCDs brightness (if FIXED_BRIGHTNESS is disabled) // sets the LCDs brightness (if FIXED_BRIGHTNESS is disabled)
case PXICMD_SET_BRIGHTNESS: case PXICMD_SET_BRIGHTNESS:
{ {
s32 newbrightness = (s32)args[0];
pxiReply = GFX_getBrightness(); pxiReply = GFX_getBrightness();
#ifndef FIXED_BRIGHTNESS #ifndef FIXED_BRIGHTNESS
s32 newbrightness = (s32)args[0];
if ((newbrightness > 0) && (newbrightness < 0x100)) { if ((newbrightness > 0) && (newbrightness < 0x100)) {
GFX_setBrightness(newbrightness, newbrightness); GFX_setBrightness(newbrightness, newbrightness);
auto_brightness = false; auto_brightness = false;