Merge pull request #945 from astronautlevel2/master
Switch to APT_ResetHardwareAsync() for reboot (Closes #831), fix #831
This commit is contained in:
commit
9c5766f649
@ -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);
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user