rosalina shutdown/reboot: fix a few things
This commit is contained in:
parent
0b4fdc6e66
commit
0c55324d11
@ -175,7 +175,7 @@ void menuThreadMain(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 menuRefCount = 0;
|
static s32 menuRefCount = 0;
|
||||||
void menuEnter(void)
|
void menuEnter(void)
|
||||||
{
|
{
|
||||||
Draw_Lock();
|
Draw_Lock();
|
||||||
|
@ -111,8 +111,9 @@ void RosalinaMenu_Reboot(void)
|
|||||||
|
|
||||||
if(pressed & BUTTON_A)
|
if(pressed & BUTTON_A)
|
||||||
{
|
{
|
||||||
APT_HardwareResetAsync();
|
|
||||||
menuLeave();
|
menuLeave();
|
||||||
|
APT_HardwareResetAsync();
|
||||||
|
return;
|
||||||
} else if(pressed & BUTTON_B)
|
} else if(pressed & BUTTON_B)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -140,6 +141,7 @@ void RosalinaMenu_PowerOff(void) // Soft shutdown.
|
|||||||
{
|
{
|
||||||
menuLeave();
|
menuLeave();
|
||||||
srvPublishToSubscriber(0x203, 0);
|
srvPublishToSubscriber(0x203, 0);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else if(pressed & BUTTON_B)
|
else if(pressed & BUTTON_B)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user