Merge pull request #995 from joel16/master

Update MCU::HWC functions with latest changes from ctrulib
This commit is contained in:
Aurora 2018-01-01 18:07:32 +01:00 committed by GitHub
commit 522f10582d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ static void menuDraw(Menu *menu, u32 selected)
if(R_SUCCEEDED(mcuHwcInit()))
{
if(R_FAILED(mcuHwcGetBatteryLevel(&batteryLevel)))
if(R_FAILED(MCUHWC_GetBatteryLevel(&batteryLevel)))
batteryLevel = 255;
mcuHwcExit();
}

View File

@ -66,9 +66,9 @@ void SysConfigMenu_ToggleLEDs(void)
{
mcuHwcInit();
u8 result;
mcuHwcReadRegister(0x28, &result, 1);
MCUHWC_ReadRegister(0x28, &result, 1);
result = ~result;
mcuHwcWriteRegister(0x28, &result, 1);
MCUHWC_WriteRegister(0x28, &result, 1);
mcuHwcExit();
}
else if(pressed & BUTTON_B)