Merge pull request #945 from astronautlevel2/master

Switch to APT_ResetHardwareAsync() for reboot (Closes #831), fix #831
This commit is contained in:
Yuuki Hikari 2017-11-23 20:46:01 -05:00 committed by GitHub
commit 9c5766f649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -106,8 +106,10 @@ void RosalinaMenu_Reboot(void)
u32 pressed = waitInputWithTimeout(1000);
if(pressed & BUTTON_A)
svcKernelSetState(7);
else if(pressed & BUTTON_B)
{
APT_HardwareResetAsync();
menuLeave();
} else if(pressed & BUTTON_B)
return;
}
while(!terminationRequest);

View File

@ -68,7 +68,7 @@ void SysConfigMenu_ToggleLEDs(void)
u8 result;
mcuHwcReadRegister(0x28, &result, 1);
result = ~result;
mcuHwcWriteRegister(40, &result, 1);
mcuHwcWriteRegister(0x28, &result, 1);
mcuHwcExit();
}
else if(pressed & BUTTON_B)