mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Fix a compiler warning
This commit is contained in:
parent
31389687ab
commit
ee43fe328f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user