Switch to APT_ResetHardwareAsync() for reboot (Closes #831)
This commit is contained in:
parent
56e54cd110
commit
c9701f93b9
@ -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);
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user