rosalina shutdown/reboot: fix a few things

This commit is contained in:
TuxSH 2020-05-10 15:35:39 +01:00
parent 0b4fdc6e66
commit 0c55324d11
2 changed files with 4 additions and 2 deletions

View File

@ -175,7 +175,7 @@ void menuThreadMain(void)
}
}
static u32 menuRefCount = 0;
static s32 menuRefCount = 0;
void menuEnter(void)
{
Draw_Lock();

View File

@ -111,8 +111,9 @@ void RosalinaMenu_Reboot(void)
if(pressed & BUTTON_A)
{
APT_HardwareResetAsync();
menuLeave();
APT_HardwareResetAsync();
return;
} else if(pressed & BUTTON_B)
return;
}
@ -140,6 +141,7 @@ void RosalinaMenu_PowerOff(void) // Soft shutdown.
{
menuLeave();
srvPublishToSubscriber(0x203, 0);
return;
}
else if(pressed & BUTTON_B)
return;