Shutdown via rosalina menu is now much faster; similar thing for reboot
This commit is contained in:
parent
daaeb97834
commit
9942e8b299
@ -111,8 +111,10 @@ void RosalinaMenu_Reboot(void)
|
|||||||
|
|
||||||
if(pressed & BUTTON_A)
|
if(pressed & BUTTON_A)
|
||||||
{
|
{
|
||||||
APT_HardwareResetAsync();
|
|
||||||
menuLeave();
|
menuLeave();
|
||||||
|
ptmSysmInit();
|
||||||
|
PTMSYSM_RebootAsync(4 * 1000 * 1000 * 1000LL); // Kill everything after 4s (value used by PM on firmlaunch)
|
||||||
|
ptmSysmExit();
|
||||||
} else if(pressed & BUTTON_B)
|
} else if(pressed & BUTTON_B)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -139,7 +141,9 @@ void RosalinaMenu_PowerOff(void) // Soft shutdown.
|
|||||||
if(pressed & BUTTON_A)
|
if(pressed & BUTTON_A)
|
||||||
{
|
{
|
||||||
menuLeave();
|
menuLeave();
|
||||||
srvPublishToSubscriber(0x203, 0);
|
ptmSysmInit();
|
||||||
|
PTMSYSM_ShutdownAsync(4 * 1000 * 1000 * 1000LL); // Kill everything after 4s (value used by PM on firmlaunch)
|
||||||
|
ptmSysmExit();
|
||||||
}
|
}
|
||||||
else if(pressed & BUTTON_B)
|
else if(pressed & BUTTON_B)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user