Fix changing the brightness
Needs to be static for some reason
This commit is contained in:
parent
8d1befea9e
commit
8175642a2a
@ -84,7 +84,9 @@ void deinitScreens(void)
|
|||||||
|
|
||||||
void updateBrightness(u32 brightnessIndex)
|
void updateBrightness(u32 brightnessIndex)
|
||||||
{
|
{
|
||||||
u32 brightnessLevel = brightness[brightnessIndex];
|
static u32 brightnessLevel;
|
||||||
|
|
||||||
|
brightnessLevel = brightness[brightnessIndex];
|
||||||
|
|
||||||
void __attribute__((naked)) ARM11(void)
|
void __attribute__((naked)) ARM11(void)
|
||||||
{
|
{
|
||||||
@ -97,7 +99,7 @@ void updateBrightness(u32 brightnessIndex)
|
|||||||
|
|
||||||
WAIT_FOR_ARM9();
|
WAIT_FOR_ARM9();
|
||||||
}
|
}
|
||||||
|
|
||||||
flushDCacheRange(&brightnessLevel, 4);
|
flushDCacheRange(&brightnessLevel, 4);
|
||||||
invokeArm11Function(ARM11);
|
invokeArm11Function(ARM11);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user