Switch to APT_ResetHardwareAsync() for reboot (Closes #831)

This commit is contained in:
Alex Taber 2017-11-23 20:32:26 -05:00
parent 56e54cd110
commit c9701f93b9
2 changed files with 5 additions and 3 deletions

View File

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

View File

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