Update mcu functions with changes from ctrulib
This commit is contained in:
parent
27f352fdf1
commit
239d113177
@ -196,7 +196,7 @@ static void menuDraw(Menu *menu, u32 selected)
|
|||||||
|
|
||||||
if(R_SUCCEEDED(mcuHwcInit()))
|
if(R_SUCCEEDED(mcuHwcInit()))
|
||||||
{
|
{
|
||||||
if(R_FAILED(mcuHwcGetBatteryLevel(&batteryLevel)))
|
if(R_FAILED(MCUHWC_GetBatteryLevel(&batteryLevel)))
|
||||||
batteryLevel = 255;
|
batteryLevel = 255;
|
||||||
mcuHwcExit();
|
mcuHwcExit();
|
||||||
}
|
}
|
||||||
|
@ -66,9 +66,9 @@ void SysConfigMenu_ToggleLEDs(void)
|
|||||||
{
|
{
|
||||||
mcuHwcInit();
|
mcuHwcInit();
|
||||||
u8 result;
|
u8 result;
|
||||||
mcuHwcReadRegister(0x28, &result, 1);
|
MCUHWC_ReadRegister(0x28, &result, 1);
|
||||||
result = ~result;
|
result = ~result;
|
||||||
mcuHwcWriteRegister(0x28, &result, 1);
|
MCUHWC_WriteRegister(0x28, &result, 1);
|
||||||
mcuHwcExit();
|
mcuHwcExit();
|
||||||
}
|
}
|
||||||
else if(pressed & BUTTON_B)
|
else if(pressed & BUTTON_B)
|
||||||
|
Reference in New Issue
Block a user